Skip to content

Commit efe5e1e

Browse files
committed
chore(mix): use MixRlnSpamProtection.new constructor, bump plugin pin
Rename the call site to the typedesc constructor MixRlnSpamProtection.new (was newMixRlnSpamProtection) to match nim-libp2p conventions, and bump the mix-rln-spam-protection-plugin pin to 61ee3e5 which provides the renamed constructor.
1 parent 76887b9 commit efe5e1e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

logos_delivery.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ requires "nim >= 2.2.4",
6262
# Packages not on nimble (use git URLs)
6363

6464
requires "https://github.com/logos-messaging/nim-ffi#v0.1.3"
65-
requires "https://github.com/logos-co/mix-rln-spam-protection-plugin.git#23b278b4ab21193ad4e9ce76015f008db7332a6f"
65+
requires "https://github.com/logos-co/mix-rln-spam-protection-plugin.git#61ee3e5aacb6b224b70e164ef7d0a5714fe66b26"
6666

6767
# nim-libp2p-mix: extracted mix protocol used by the plugin and by waku's
6868
# mix integration layer. Tip of experiment/drop-nimble-lock (PR #14, stacked

logos_delivery/waku/waku_mix/protocol.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ proc new*(
113113
spamProtectionConfig.userMessageLimit = userMessageLimit.get()
114114
# rlnResourcesPath left empty to use bundled resources (via "tree_height_/" placeholder)
115115

116-
let spamProtection = newMixRlnSpamProtection(spamProtectionConfig).valueOr:
116+
let spamProtection = MixRlnSpamProtection.new(spamProtectionConfig).valueOr:
117117
return err("failed to create spam protection: " & error)
118118

119119
var m = WakuMix(

0 commit comments

Comments
 (0)