mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-06-28 20:39:34 +00:00
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.
This commit is contained in:
parent
6a954bdec0
commit
153ee7fb28
@ -66,7 +66,7 @@ requires "nim >= 2.2.4",
|
||||
# Packages not on nimble (use git URLs)
|
||||
|
||||
requires "https://github.com/logos-messaging/nim-ffi#v0.1.3"
|
||||
requires "https://github.com/logos-co/mix-rln-spam-protection-plugin.git#23b278b4ab21193ad4e9ce76015f008db7332a6f"
|
||||
requires "https://github.com/logos-co/mix-rln-spam-protection-plugin.git#61ee3e5aacb6b224b70e164ef7d0a5714fe66b26"
|
||||
|
||||
# nim-libp2p-mix: extracted mix protocol used by the plugin and by waku's
|
||||
# mix integration layer. Tip of experiment/drop-nimble-lock (PR #14, stacked
|
||||
|
||||
@ -112,7 +112,7 @@ proc new*(
|
||||
spamProtectionConfig.userMessageLimit = userMessageLimit.get()
|
||||
# rlnResourcesPath left empty to use bundled resources (via "tree_height_/" placeholder)
|
||||
|
||||
let spamProtection = newMixRlnSpamProtection(spamProtectionConfig).valueOr:
|
||||
let spamProtection = MixRlnSpamProtection.new(spamProtectionConfig).valueOr:
|
||||
return err("failed to create spam protection: " & error)
|
||||
|
||||
var m = WakuMix(
|
||||
|
||||
@ -599,8 +599,8 @@
|
||||
}
|
||||
},
|
||||
"mix_rln_spam_protection": {
|
||||
"version": "#23b278b4ab21193ad4e9ce76015f008db7332a6f",
|
||||
"vcsRevision": "23b278b4ab21193ad4e9ce76015f008db7332a6f",
|
||||
"version": "#61ee3e5aacb6b224b70e164ef7d0a5714fe66b26",
|
||||
"vcsRevision": "61ee3e5aacb6b224b70e164ef7d0a5714fe66b26",
|
||||
"url": "https://github.com/logos-co/mix-rln-spam-protection-plugin.git",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [
|
||||
@ -616,7 +616,7 @@
|
||||
"libp2p_mix"
|
||||
],
|
||||
"checksums": {
|
||||
"sha1": "4a08ea061e659e248249318315ed7ed66f5dd90f"
|
||||
"sha1": "03d1e7d7663a3136b1799d3dc507ee4689511235"
|
||||
}
|
||||
},
|
||||
"eth": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user