From 315a3df6dfbadff97928ae0896512d069cbf9e65 Mon Sep 17 00:00:00 2001 From: Angelos Evripiotis Date: Thu, 14 Nov 2019 17:54:47 +0000 Subject: 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. --- src/buildstream/_cas/casdprocessmanager.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/buildstream/_cas') 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. -- cgit v1.2.1