Use m̶u̶l̶t̶i̶p̶r̶o̶c̶e̶s̶s̶i̶n̶g̶ asyncio locks instead of db locks (#256)

* use mp locks instead of db locks

* replace mp.Lock with asyncio.Lock

* make format

* push

* remove db connection (and lock) and delete asyncio locks
This commit is contained in:
callebtc
2023-06-23 19:10:32 +02:00
committed by GitHub
parent 62a6ec34b0
commit a3e67d21aa
2 changed files with 56 additions and 74 deletions

View File

@@ -453,6 +453,7 @@ async def pending(ctx: Context, legacy, number: int, offset: int):
tokenObj = deserialize_token_from_string(token)
mint = [t.mint for t in tokenObj.token][0]
# token_hidden_secret = await wallet.serialize_proofs(grouped_proofs)
assert grouped_proofs[0].time_reserved
reserved_date = datetime.utcfromtimestamp(
int(grouped_proofs[0].time_reserved)
).strftime("%Y-%m-%d %H:%M:%S")