Black
This commit is contained in:
parent
f876f0659f
commit
c2a737ab84
3 changed files with 7 additions and 4 deletions
|
|
@ -383,6 +383,7 @@ async def check_transaction_status(
|
|||
def fee_reserve(amount_msat: int) -> int:
|
||||
return max(int(RESERVE_FEE_MIN), int(amount_msat * RESERVE_FEE_PERCENT / 100.0))
|
||||
|
||||
|
||||
class websocketConnectionManager:
|
||||
def __init__(self):
|
||||
self.active_connections: List[WebSocket] = []
|
||||
|
|
@ -400,7 +401,9 @@ class websocketConnectionManager:
|
|||
if connection.id == item_id:
|
||||
await connection.send_text(message)
|
||||
|
||||
|
||||
websocketManager = websocketConnectionManager()
|
||||
|
||||
|
||||
async def websocketUpdater(item_id, data):
|
||||
return await websocketManager.send_data(f"{data}", item_id)
|
||||
|
|
@ -57,7 +57,7 @@ from ..services import (
|
|||
pay_invoice,
|
||||
perform_lnurlauth,
|
||||
websocketManager,
|
||||
websocketUpdater
|
||||
websocketUpdater,
|
||||
)
|
||||
from ..tasks import api_invoice_listeners
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue