Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Feb 9, 2024
1 parent 79fb5d7 commit 3060f20
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,6 @@ export class GossipSub extends TypedEventEmitter<GossipsubEvents> 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,
Expand Down

0 comments on commit 3060f20

Please sign in to comment.