diff options
Diffstat (limited to 'tensorflow/core/distributed_runtime/rpc/grpc_worker_cache.cc')
-rw-r--r-- | tensorflow/core/distributed_runtime/rpc/grpc_worker_cache.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tensorflow/core/distributed_runtime/rpc/grpc_worker_cache.cc b/tensorflow/core/distributed_runtime/rpc/grpc_worker_cache.cc index 29acad34e9..06695db779 100644 --- a/tensorflow/core/distributed_runtime/rpc/grpc_worker_cache.cc +++ b/tensorflow/core/distributed_runtime/rpc/grpc_worker_cache.cc @@ -69,9 +69,8 @@ class GrpcWorkerCache : public WorkerCachePartial { } else { SharedGrpcChannelPtr channel = channel_cache_->FindWorkerChannel(target); if (!channel) return nullptr; - WorkerInterface* ret = NewGrpcRemoteWorker(&live_rpc_counter_, channel, - &completion_queue_, &logger_); - return ret; + return NewGrpcRemoteWorker(&live_rpc_counter_, channel, + &completion_queue_, &logger_); } } |