Remove objstore_stub_ (#176)

This commit is contained in:
mehrdadn
2016-06-27 23:16:35 +03:00
committed by Philipp Moritz
parent 23c0b1828f
commit 27bd859925
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ Status WorkerServiceImpl::ExecuteTask(ServerContext* context, const ExecuteTaskR
Worker::Worker(const std::string& worker_address, std::shared_ptr<Channel> scheduler_channel, std::shared_ptr<Channel> objstore_channel)
: worker_address_(worker_address),
scheduler_stub_(Scheduler::NewStub(scheduler_channel)),
objstore_stub_(ObjStore::NewStub(objstore_channel)) {
scheduler_stub_(Scheduler::NewStub(scheduler_channel)) {
receive_queue_.connect(worker_address_, true);
connected_ = true;
}
-1
View File
@@ -92,7 +92,6 @@ class Worker {
bool connected_;
const size_t CHUNK_SIZE = 8 * 1024;
std::unique_ptr<Scheduler::Stub> scheduler_stub_;
std::unique_ptr<ObjStore::Stub> objstore_stub_;
std::thread worker_server_thread_;
MessageQueue<Task*> receive_queue_;
managed_shared_memory segment_;