From 4d20c67c1fcda9f5c95d6372cc69e363150ee8a1 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Tue, 27 Aug 2024 16:46:08 +0530 Subject: [PATCH] chore: bind context to function --- packages/sdk/src/protocols/filter/subscription_manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/protocols/filter/subscription_manager.ts b/packages/sdk/src/protocols/filter/subscription_manager.ts index aafedb36e4..7e76271a7f 100644 --- a/packages/sdk/src/protocols/filter/subscription_manager.ts +++ b/packages/sdk/src/protocols/filter/subscription_manager.ts @@ -47,7 +47,7 @@ export class SubscriptionManager implements ISubscriptionSDK { this.subscriptionCallbacks = new Map(); this.reliabilityMonitor = new ReliabilityMonitor( - getPeers, + getPeers.bind(this), this.renewAndSubscribePeer.bind(this) ); }