summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-11-14 17:54:47 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-11-22 16:52:26 +0000
commit315a3df6dfbadff97928ae0896512d069cbf9e65 (patch)
tree2e20c8d5a63bc216111ec587acde8e1be885487d
parente913a8a6d0cf7f7ef33869bb8d8f9e4c04fcc06a (diff)
downloadbuildstream-315a3df6dfbadff97928ae0896512d069cbf9e65.tar.gz
CASDChannel: don't need to call GetCapabilities
It doesn't seem like we need to call GetCapabilities here, as we're not querying anything. Remove the call to save some time.
-rw-r--r--src/buildstream/_cas/casdprocessmanager.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/buildstream/_cas/casdprocessmanager.py b/src/buildstream/_cas/casdprocessmanager.py
index 5e15f95d6..e4a58d7d5 100644
--- a/src/buildstream/_cas/casdprocessmanager.py
+++ b/src/buildstream/_cas/casdprocessmanager.py
@@ -26,7 +26,7 @@ import time
import grpc
-from .._protos.build.bazel.remote.execution.v2 import remote_execution_pb2, remote_execution_pb2_grpc
+from .._protos.build.bazel.remote.execution.v2 import remote_execution_pb2_grpc
from .._protos.build.buildgrid import local_cas_pb2_grpc
from .. import _signals, utils
@@ -195,10 +195,6 @@ class CASDChannel:
self._casd_cas = remote_execution_pb2_grpc.ContentAddressableStorageStub(self._casd_channel)
self._local_cas = local_cas_pb2_grpc.LocalContentAddressableStorageStub(self._casd_channel)
- # Call GetCapabilities() to establish connection to casd
- capabilities = remote_execution_pb2_grpc.CapabilitiesStub(self._casd_channel)
- capabilities.GetCapabilities(remote_execution_pb2.GetCapabilitiesRequest())
-
# get_cas():
#
# Return ContentAddressableStorage stub for buildbox-casd channel.