summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-09-26 10:15:49 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-04-14 16:25:19 +0900
commitf85d605105ed8f15a0b81b19ed21cd3512259a6e (patch)
treeb60f529f2aa925285da1ef11dcbffd21a98325da
parentba6af77b61ab69afba3e58acf60fb0727689a9ff (diff)
downloadbuildstream-f85d605105ed8f15a0b81b19ed21cd3512259a6e.tar.gz
_artifactcache/casserver.py: Use Context for artifact cache creation
-rw-r--r--buildstream/_artifactcache/casserver.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/casserver.py b/buildstream/_artifactcache/casserver.py
index e18689c78..3fc0943f5 100644
--- a/buildstream/_artifactcache/casserver.py
+++ b/buildstream/_artifactcache/casserver.py
@@ -37,8 +37,6 @@ from .._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc
from .._exceptions import ArtifactError
from .._context import Context
-from .cascache import CASCache
-
# The default limit for gRPC messages is 4 MiB.
# Limit payload to 1 MiB to leave sufficient headroom for metadata.
@@ -64,7 +62,7 @@ def create_server(repo, *, enable_push,
context = Context()
context.artifactdir = os.path.abspath(repo)
- artifactcache = CASCache(context)
+ artifactcache = context.artifactcache
# Use max_workers default from Python 3.5+
max_workers = (os.cpu_count() or 1) * 5