unused locks (#10320)

* unused locks

* unused locks

* unused locks

* unused locks

* unused locks

* unused locks

* removed unused import
This commit is contained in:
wjblanke 2022-02-20 21:29:16 -08:00 committed by GitHub
parent b544e75cd7
commit a59979b8c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 7 deletions

View File

@ -1,4 +1,3 @@
import asyncio
import logging
from typing import Dict, Optional
@ -19,7 +18,6 @@ class CATLineageStore:
"""
db_connection: aiosqlite.Connection
lock: asyncio.Lock
db_wrapper: DBWrapper
table_name: str
@ -34,8 +32,6 @@ class CATLineageStore:
)
await self.db_connection.commit()
# Lock
self.lock = asyncio.Lock() # external
return self
async def close(self):

View File

@ -211,7 +211,6 @@ class WalletNode:
self.log.info(f"Copying wallet db from {standalone_path} to {path}")
path.write_bytes(standalone_path.read_bytes())
self.new_peak_lock = asyncio.Lock()
assert self.server is not None
self.wallet_state_manager = await WalletStateManager.create(
private_key,

View File

@ -81,8 +81,6 @@ class WalletStateManager:
# Makes sure only one asyncio thread is changing the blockchain state at one time
lock: asyncio.Lock
tx_lock: asyncio.Lock
log: logging.Logger
# TODO Don't allow user to send tx until wallet is synced