mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-06-26 11:29:28 +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
c3b629759d
commit
b878de82b8
@ -140,7 +140,7 @@ proc new*(
|
||||
ctTotalSlots = spamProtectionConfig.userMessageLimit
|
||||
ctEpochDuration = spamProtectionConfig.epochDurationSeconds.int.seconds
|
||||
|
||||
let spamProtection = newMixRlnSpamProtection(spamProtectionConfig).valueOr:
|
||||
let spamProtection = MixRlnSpamProtection.new(spamProtectionConfig).valueOr:
|
||||
return err("failed to create spam protection: " & error)
|
||||
spamProtectionOpt = Opt.some(SpamProtection(spamProtection))
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user