From 4614c7d4c2a7ef2800128e269a066bf2af2497a5 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 17 Aug 2021 09:52:44 -0400 Subject: [PATCH] clean blobs after waiting interval instead of immediately on startup --- lbry/blob/disk_space_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/blob/disk_space_manager.py b/lbry/blob/disk_space_manager.py index 58e8b19bc..f42a43be4 100644 --- a/lbry/blob/disk_space_manager.py +++ b/lbry/blob/disk_space_manager.py @@ -50,8 +50,8 @@ class DiskSpaceManager: async def cleaning_loop(self): while self.running: - await asyncio.get_event_loop().run_in_executor(None, self.clean) await asyncio.sleep(self.cleaning_interval) + await asyncio.get_event_loop().run_in_executor(None, self.clean) async def start(self): self.running = True