From f7eca425eb906a8c05380cb48d786556fc6ea676 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sat, 27 Aug 2022 10:12:35 -0400 Subject: [PATCH] fix cache --- hub/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/common.py b/hub/common.py index b59b588..9304689 100644 --- a/hub/common.py +++ b/hub/common.py @@ -542,9 +542,9 @@ class LargestValueCache: return False popped = self._raw_cache.popleft() self._cache.pop(popped.key) + self._cache[key] = value item = LargestValueCacheItem(key, value) insort_right(self._raw_cache, item) - self._cache[key] = value return True def clear(self):