waku/v2/discv5/discover.go
Function NewDiscoveryV5
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewDiscoveryV5(priv *ecdsa.PrivateKey, localnode *enode.LocalNode, peerConnector PeerConnector, reg prometheus.Registerer, log *zap.Logger, opts ...DiscoveryV5Option) (*DiscoveryV5, error) {