fixes incomplete async annotation (#1015)

This commit is contained in:
Marcin Czenko 2024-12-02 16:07:43 +01:00 committed by GitHub
parent ab019a08ae
commit 3f510eb501
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ proc deleteExpiredBlock(self: BlockMaintainer, cid: Cid): Future[void] {.async.}
if isErr (await self.repoStore.delBlock(cid)): if isErr (await self.repoStore.delBlock(cid)):
trace "Unable to delete block from repoStore" trace "Unable to delete block from repoStore"
proc processBlockExpiration(self: BlockMaintainer, be: BlockExpiration): Future[void] {.async} = proc processBlockExpiration(self: BlockMaintainer, be: BlockExpiration): Future[void] {.async.} =
if be.expiry < self.clock.now: if be.expiry < self.clock.now:
await self.deleteExpiredBlock(be.cid) await self.deleteExpiredBlock(be.cid)
else: else: