simple refactor in waku mix protocol mostly to rm duplicated log (#3752)

This commit is contained in:
Ivan FB 2026-03-13 14:33:24 +01:00 committed by GitHub
parent 9901e6e368
commit 96f1c40ab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ proc processBootNodes(
info "using mix bootstrap nodes ", count = count
proc new*(
T: type WakuMix,
T: typedesc[WakuMix],
nodeAddr: string,
peermgr: PeerManager,
clusterId: uint16,
@ -86,8 +86,6 @@ proc new*(
peermgr.switch.peerInfo.peerId, nodeMultiAddr, mixPubKey, mixPrivKey,
peermgr.switch.peerInfo.publicKey.skkey, peermgr.switch.peerInfo.privateKey.skkey,
)
if bootnodes.len < minMixPoolSize:
warn "publishing with mix won't work until atleast 3 mix nodes in node pool"
var m = WakuMix(peerManager: peermgr, clusterId: clusterId, pubKey: mixPubKey)
procCall MixProtocol(m).init(