Skip to content

Commit

Permalink
Merge pull request #3398 from lbryio/clean_blobs_after_delay
Browse files Browse the repository at this point in the history
clean blobs after waiting interval instead of immediately on startup
  • Loading branch information
eukreign authored Aug 17, 2021
2 parents bbf1ef0 + 4614c7d commit 4c1d3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lbry/blob/disk_space_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def clean(self):

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
Expand Down

0 comments on commit 4c1d3ef

Please sign in to comment.