From 3060f20239d80784cc4235db3f3aa562229832fc Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Fri, 9 Feb 2024 17:30:21 +0700 Subject: [PATCH] chore: remove unused code --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6d75c132..50d7e9ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -955,7 +955,6 @@ export class GossipSub extends TypedEventEmitter implements Pub const rpcBytes = data.subarray() // Note: This function may throw, it must be wrapped in a try {} catch {} to prevent closing the stream. // TODO: What should we do if the entire RPC is invalid? - // const rpc = decodeRpc(rpcBytes, this.decodeRpcLimits) const rpc = RPC.decode(rpcBytes, { limits: { subscriptions: this.decodeRpcLimits.maxSubscriptions,