Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 6babdb2

Browse files
committed
popitem updated
1 parent ca5ab76 commit 6babdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teos/watcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def is_full(self):
127127
def remove_oldest_block(self):
128128
""" Removes the oldest block from the cache."""
129129
with self.rw_lock.gen_wlock():
130-
block_hash, locators = self.blocks.popitem(last=False)
130+
block_hash, locators = self.blocks.popitem()
131131
for locator in locators:
132132
del self.cache[locator]
133133

0 commit comments

Comments
 (0)