Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public constructor(opts: INetworkOptions, {config, libp2p, logger}: IGossipModules) {
super();
this.opts = opts;
this.config = config;
this.libp2p = libp2p;
this.logger = logger.child({module: "gossip", level: LogLevel[logger.level]});
this.logger.silent = logger.silent;
this.pubsub = new Gossipsub(libp2p, {gossipIncoming: false});
this.handlers = this.registerHandlers();
}
public constructor(opts: INetworkOptions, {config, libp2p, logger}: IGossipModules) {
super();
this.opts = opts;
this.config = config;
this.libp2p = libp2p;
this.logger = logger;
this.pubsub = new Gossipsub(libp2p, {gossipIncoming: false});
}