diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index 66d861aec..03dca3045 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -61,7 +61,6 @@ def __init__(self, path, *, casd, remote_cache=False): os.makedirs(self.tmpdir, exist_ok=True) self._cache_usage_monitor = None - self._cache_usage_monitor_forbidden = False self._remote_cache = remote_cache @@ -703,7 +702,6 @@ def _send_directory(self, remote, digest): # (CASCacheUsage): The current status # def get_cache_usage(self): - assert not self._cache_usage_monitor_forbidden return self._cache_usage_monitor.get_cache_usage() # get_casd()