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:
Prem Chaitanya Prathi 2026-04-28 16:53:30 +05:30
parent fe0a90eda1
commit 15d341ca02
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -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,

View File

@ -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":