summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-10-10 11:08:09 +0200
committerJürg Billeter <j@bitron.ch>2019-10-15 10:56:17 +0200
commit0d0dc00822243bd00da25b5b4823eadb50fe02db (patch)
treec85ce9481e35c89cc0828f1d9be2d230c3e78e04
parentd0a06b0aadb365420ec6b6df8ac50f4851bd075b (diff)
downloadbuildstream-0d0dc00822243bd00da25b5b4823eadb50fe02db.tar.gz
workspace.py: Do not close gRPC channels
This is now handled in Context.prepare_fork().
-rw-r--r--src/buildstream/plugins/sources/workspace.py3
-rw-r--r--src/buildstream/source.py2
2 files changed, 0 insertions, 5 deletions
diff --git a/src/buildstream/plugins/sources/workspace.py b/src/buildstream/plugins/sources/workspace.py
index 078ac3034..8dbcc6218 100644
--- a/src/buildstream/plugins/sources/workspace.py
+++ b/src/buildstream/plugins/sources/workspace.py
@@ -103,9 +103,6 @@ class WorkspaceSource(Source):
"Failed to stage source: files clash with existing directory",
reason='ensure-stage-dir-fail')
self.__digest = self.__cas_dir._get_digest().hash
- # now close down grpc channels
- cas.close_grpc_channels()
- assert not cas.has_open_grpc_channels()
return (self.path, self.__digest)
def init_workspace(self, directory: Directory) -> None:
diff --git a/src/buildstream/source.py b/src/buildstream/source.py
index 14307387a..1fb318b52 100644
--- a/src/buildstream/source.py
+++ b/src/buildstream/source.py
@@ -1085,8 +1085,6 @@ class Source(Plugin):
sourcecache = self._get_context().sourcecache
if self.get_kind() == 'workspace' and not sourcecache.contains(self):
sourcecache.commit(self, [])
- sourcecache.cas.close_grpc_channels()
- assert not sourcecache.cas.has_open_grpc_channels()
@property
def _key(self):