storage.clock.seconds() -> asyncio.get_running_loop().time()
This commit is contained in:
parent
d30e7cd29e
commit
71a0c704bd
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
from binascii import unhexlify
|
||||
|
@ -69,8 +70,9 @@ class DiskBlobManager:
|
|||
return f2d(self.storage.count_should_announce_blobs())
|
||||
|
||||
def set_should_announce(self, blob_hash, should_announce):
|
||||
now = self.storage.clock.seconds()
|
||||
return f2d(self.storage.set_should_announce(blob_hash, now, should_announce))
|
||||
return f2d(self.storage.set_should_announce(
|
||||
blob_hash, asyncio.get_running_loop().time(), should_announce
|
||||
))
|
||||
|
||||
def get_should_announce(self, blob_hash):
|
||||
return f2d(self.storage.should_announce(blob_hash))
|
||||
|
|
Loading…
Reference in a new issue