enable peer-exchange by default and fix log on client (#3557)

This commit is contained in:
Prem Chaitanya Prathi 2025-09-12 12:16:59 +05:30 committed by GitHub
parent 028bf297af
commit 7df526f8e3
2 changed files with 2 additions and 2 deletions

View File

@ -603,7 +603,7 @@ with the drawback of consuming some more bandwidth.""",
## waku peer exchange config
peerExchange* {.
desc: "Enable waku peer exchange protocol (responder side): true|false",
defaultValue: false,
defaultValue: true,
name: "peer-exchange"
.}: bool

View File

@ -92,7 +92,7 @@ proc request*(
let peerOpt = wpx.peerManager.selectPeer(WakuPeerExchangeCodec)
if peerOpt.isNone():
waku_px_client_errors.inc(labelValues = [peerNotFoundFailure])
error "peer exchange error peerOpt is none"
info "peer exchange request could not be made as no peer exchange peers found"
return err(
(
status_code: PeerExchangeResponseStatusCode.SERVICE_UNAVAILABLE,