fix: don't set key cache if its location is not configured

This commit is contained in:
Umut
2022-04-26 14:05:54 +02:00
parent 840a9c2c20
commit add923b291

View File

@@ -80,7 +80,8 @@ class Circuit:
if configuration.use_insecure_key_cache:
assert_that(configuration.enable_unsafe_features)
location = CompilationConfiguration.insecure_key_cache_location()
self._keyset_cache = KeySetCache.new(str(location))
if location is not None:
self._keyset_cache = KeySetCache.new(str(location))
self._keyset = None
self._server_lambda = self._jit_support.load_server_lambda(self._compilation_result)