diff --git a/src/services/main/index.ts b/src/services/main/index.ts index 75621027..71d81d8c 100644 --- a/src/services/main/index.ts +++ b/src/services/main/index.ts @@ -59,7 +59,7 @@ export default class { this.settings = settings this.storage = storage this.metricsManager = new MetricsManager(this.storage) - this.lnd = NewLightningHandler(settings.lndSettings, this.addressPaidCb, this.invoicePaidCb, this.newBlockCb, this.metricsManager.HtlcCb) + this.lnd = NewLightningHandler(settings.lndSettings, this.addressPaidCb, this.invoicePaidCb, this.newBlockCb, e => this.metricsManager.HtlcCb) this.paymentManager = new PaymentManager(this.storage, this.lnd, this.settings, this.addressPaidCb, this.invoicePaidCb) this.productManager = new ProductManager(this.storage, this.paymentManager, this.settings)