chore: better exception

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

View File

@ -203,6 +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,
colocationLimit = builder.colocationLimit,
shardedPeerManagement = builder.shardAware,
)