fix: define local vars in public key handler (#14176)

This commit is contained in:
Aaron van Meerten
2024-03-20 03:35:23 -05:00
committed by GitHub
parent b79907f7a5
commit 5d84a4cc90

View File

@@ -123,6 +123,7 @@ function Util.new(module)
self.cachedKeys = {};
local update_keys_cache;
update_keys_cache = async.runner(function (name)
local content, code, cache_for;
content, code, cache_for = http_get_with_retry(self.cacheKeysUrl, nr_retries);
if content ~= nil then
local keys_to_delete = table_shallow_copy(self.cachedKeys);