| 485 | } |
| 486 | |
| 487 | StatusOr<ChannelHandle> Client::CreateChannelHandleByType( |
| 488 | ChannelHandle::ChannelType type) { |
| 489 | CreateChannelHandleRequest request; |
| 490 | request.set_channel_type(type); |
| 491 | CreateChannelHandleResponse response; |
| 492 | |
| 493 | VLOG(1) << "making create channel handle request"; |
| 494 | Status s = stub_->CreateChannelHandle(&request, &response); |
| 495 | VLOG(1) << "done with request"; |
| 496 | |
| 497 | if (!s.ok()) { |
| 498 | return s; |
| 499 | } |
| 500 | |
| 501 | return response.channel(); |
| 502 | } |
| 503 | |
| 504 | StatusOr<ChannelHandle> Client::CreateChannelHandle() { |
| 505 | return CreateChannelHandleByType(ChannelHandle::DEVICE_TO_DEVICE); |
nothing calls this directly
no test coverage detected