mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-12 05:19:33 +00:00
fix(chat2mix): unblock build
- rename ExtendedKademliaDiscoveryParams -> ExtendedServiceDiscoveryParams - switch sink from textlines[file] to textlines to work around a chronicles compile-time macro-eval bug under Nim 2.2.4
This commit is contained in:
parent
fe0a90eda1
commit
15d341ca02
@ -576,7 +576,7 @@ proc processInput(rfd: AsyncFD, rng: ref HmacDrbgContext) {.async.} =
|
||||
if kadBootstrapPeers.len > 0:
|
||||
node.wakuKademlia = WakuKademlia.new(
|
||||
node.switch,
|
||||
ExtendedKademliaDiscoveryParams(
|
||||
ExtendedServiceDiscoveryParams(
|
||||
bootstrapNodes: kadBootstrapPeers,
|
||||
mixPubKey: some(mixPubKey),
|
||||
advertiseMix: false,
|
||||
|
||||
@ -159,9 +159,13 @@ task chat2mix, "Build example Waku chat mix usage":
|
||||
#buildBinary name, "examples/", "-d:chronicles_log_level=WARN"
|
||||
|
||||
let name = "chat2mix"
|
||||
# Sink uses textlines (stdout) instead of textlines[file]: the latter
|
||||
# currently triggers a chronicles compile-time macro-eval bug with Nim 2.2.4.
|
||||
# Callers can redirect stdout to a file (the existing run_chat_mix*.sh
|
||||
# scripts already do this).
|
||||
buildBinary name,
|
||||
"apps/chat2mix/",
|
||||
"-d:chronicles_sinks=textlines[file] -d:chronicles_log_level='TRACE' "
|
||||
"-d:chronicles_sinks=textlines -d:chronicles_log_level='TRACE' "
|
||||
# -d:ssl - cause unlisted exception error in libp2p/utility...
|
||||
|
||||
task chat2bridge, "Build chat2bridge":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user