mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-26 14:33:27 +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
7442099921
commit
54282a25eb
@ -139,7 +139,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