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(
switch = switch,
storage = builder.peerStorage.get(nil),
maxRelayPeers = builder.maxRelayPeers,
maxServicePeers = builder.maxServicePeers,
maxRelayPeers = some(builder.maxRelayPeers),
maxServicePeers = some(builder.maxServicePeers),
colocationLimit = builder.colocationLimit,
shardedPeerManagement = builder.shardAware,
)