chore: better exception

This commit is contained in:
DarshanBPatel 2024-12-18 04:44:25 +05:30
parent a93aff789e
commit 0b143fd77d
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22

View File

@ -203,8 +203,8 @@ proc build*(builder: WakuNodeBuilder): Result[WakuNode, string] =
let peerManager = PeerManager.new( let peerManager = PeerManager.new(
switch = switch, switch = switch,
storage = builder.peerStorage.get(nil), storage = builder.peerStorage.get(nil),
maxRelayPeers = builder.maxRelayPeers, maxRelayPeers = some(builder.maxRelayPeers),
maxServicePeers = builder.maxServicePeers, maxServicePeers = some(builder.maxServicePeers),
colocationLimit = builder.colocationLimit, colocationLimit = builder.colocationLimit,
shardedPeerManagement = builder.shardAware, shardedPeerManagement = builder.shardAware,
) )