mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-05 23:43:07 +00:00
enable peer-exchange by default and fix log on client (#3557)
This commit is contained in:
parent
028bf297af
commit
7df526f8e3
@ -603,7 +603,7 @@ with the drawback of consuming some more bandwidth.""",
|
|||||||
## waku peer exchange config
|
## waku peer exchange config
|
||||||
peerExchange* {.
|
peerExchange* {.
|
||||||
desc: "Enable waku peer exchange protocol (responder side): true|false",
|
desc: "Enable waku peer exchange protocol (responder side): true|false",
|
||||||
defaultValue: false,
|
defaultValue: true,
|
||||||
name: "peer-exchange"
|
name: "peer-exchange"
|
||||||
.}: bool
|
.}: bool
|
||||||
|
|
||||||
|
|||||||
@ -92,7 +92,7 @@ proc request*(
|
|||||||
let peerOpt = wpx.peerManager.selectPeer(WakuPeerExchangeCodec)
|
let peerOpt = wpx.peerManager.selectPeer(WakuPeerExchangeCodec)
|
||||||
if peerOpt.isNone():
|
if peerOpt.isNone():
|
||||||
waku_px_client_errors.inc(labelValues = [peerNotFoundFailure])
|
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(
|
return err(
|
||||||
(
|
(
|
||||||
status_code: PeerExchangeResponseStatusCode.SERVICE_UNAVAILABLE,
|
status_code: PeerExchangeResponseStatusCode.SERVICE_UNAVAILABLE,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user