Skip to content

Commit 2a1a8e2

Browse files
fix bug
1 parent 9cf273a commit 2a1a8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/server/src/simcore_service_webserver/notifications/wallet_osparc_credits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
async def subscribe(app: web.Application, wallet_id: WalletID) -> None:
1515

16-
async with app["subscription_lock"]:
16+
async with app["wallet_subscription_lock"]:
1717
counter = app["wallet_subscriptions"][wallet_id]
1818
app["wallet_subscriptions"][wallet_id] += 1
1919

@@ -26,7 +26,7 @@ async def subscribe(app: web.Application, wallet_id: WalletID) -> None:
2626

2727
async def unsubscribe(app: web.Application, wallet_id: WalletID) -> None:
2828

29-
async with app["subscription_lock"]:
29+
async with app["wallet_subscription_lock"]:
3030
counter = app["wallet_subscriptions"].get(wallet_id, 0)
3131
if counter > 0:
3232
app["wallet_subscriptions"][wallet_id] -= 1

0 commit comments

Comments
 (0)