diff --git a/packages/node-sdk/paima-db/src/delegate-wallet.ts b/packages/node-sdk/paima-db/src/delegate-wallet.ts index 473bd2e80..774c6ad3d 100644 --- a/packages/node-sdk/paima-db/src/delegate-wallet.ts +++ b/packages/node-sdk/paima-db/src/delegate-wallet.ts @@ -84,8 +84,6 @@ export async function getRelatedWallets( // This improves performance by caching the results of the queries. // It is not enabled by default because `clearDelegateWalletCacheOnChanges` must be called from client. export async function clearDelegateWalletCacheOnChanges(DBConn: Client): Promise { - useAddressCache = true; - if (useAddressCache) throw new Error('Already listening to wallet connect updates'); doLog('Listening to wallet connect updates'); await DBConn.query('LISTEN wallet_connect_change');