From 655d3a937361609f43e86de500bdac41874e3087 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Mon, 24 Jun 2024 22:43:47 +0200 Subject: [PATCH] up --- src/services/lnd/liquidityProvider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/lnd/liquidityProvider.ts b/src/services/lnd/liquidityProvider.ts index cb703f33..f11ddfe9 100644 --- a/src/services/lnd/liquidityProvider.ts +++ b/src/services/lnd/liquidityProvider.ts @@ -24,7 +24,7 @@ export class LiquidityProvider { invoicePaidCb: InvoicePaidCb connecting = false readyInterval: NodeJS.Timeout - queue: { res: (usable: boolean) => void }[] = [] + queue: ((usable: boolean) => void)[] = [] // make the sub process accept client constructor(pubDestination: string, invoicePaidCb: InvoicePaidCb) { if (!pubDestination) { @@ -55,7 +55,7 @@ export class LiquidityProvider { return true } return new Promise(res => { - this.queue.push({ res }) + this.queue.push(res) }) } @@ -70,7 +70,7 @@ export class LiquidityProvider { if (this.latestMaxWithdrawable === null) { return } - this.queue.forEach(q => q.res(true)) + this.queue.forEach(q => q(true)) this.log("subbing to user operations") this.client.GetLiveUserOperations(res => { console.log("got user operation", res)