Skip to content

Commit

Permalink
fix: fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mkermani144 committed Aug 18, 2024
1 parent d2eb51a commit 09674fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export interface GossipsubOpts extends GossipsubOptsSpec, PubSubInit {
*
* It should be a number between 0 and 1, with a reasonable default of 0.25
*/
gossipFactor: number;
gossipFactor: number
}

export interface GossipsubMessage {
Expand Down Expand Up @@ -2507,7 +2507,7 @@ export class GossipSub extends TypedEventEmitter<GossipsubEvents> implements Pub

if (candidateToGossip.size === 0) return
let target = this.opts.Dlazy
const gossipFactor = this.opts.gossipFactor;
const gossipFactor = this.opts.gossipFactor
const factor = gossipFactor * candidateToGossip.size
let peersToGossip: Set<PeerIdStr> | PeerIdStr[] = candidateToGossip
if (factor > target) {
Expand Down

0 comments on commit 09674fc

Please sign in to comment.