Merge pull request #3398 from lbryio/clean_blobs_after_delay

clean blobs after waiting interval instead of immediately on startup
This commit is contained in:
Lex Berezhny 2021-08-17 10:44:34 -04:00 committed by GitHub
commit 4c1d3ef514
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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