From d331f8b8b66e52a645dedefa7b7c31740dc309dc Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 20 Jul 2020 16:20:32 +0530 Subject: no more wildcard notifications --- src/operations/reserves.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/operations/reserves.ts') diff --git a/src/operations/reserves.ts b/src/operations/reserves.ts index 7dd97decb..365d6e221 100644 --- a/src/operations/reserves.ts +++ b/src/operations/reserves.ts @@ -336,7 +336,7 @@ async function registerReserveWithBank( r.retryInfo = initRetryInfo(); return r; }); - ws.notify({ type: NotificationType.Wildcard }); + ws.notify({ type: NotificationType.ReserveRegisteredWithBank }); return processReserveBankStatus(ws, reservePub); } @@ -377,8 +377,6 @@ async function processReserveBankStatusImpl( await statusResp.json(), ); - ws.notify({ type: NotificationType.Wildcard }); - if (status.selection_done) { if (reserve.reserveStatus === ReserveRecordStatus.REGISTERING_BANK) { await registerReserveWithBank(ws, reservePub); @@ -420,7 +418,6 @@ async function processReserveBankStatusImpl( }); await incrementReserveRetry(ws, reservePub, undefined); } - ws.notify({ type: NotificationType.Wildcard }); } async function incrementReserveRetry( -- cgit v1.2.3