mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-22 20:50:22 +00:00
Fix linting
This commit is contained in:
parent
1473301b09
commit
287bafc45c
@ -160,9 +160,7 @@ proc legacyLightpushPublish*(
|
||||
msgWithProof = (
|
||||
await checkAndGenerateRLNProof(rln, msgWithProof, forceMerkleProofRefresh = true)
|
||||
).valueOr:
|
||||
return err(
|
||||
"failed call checkAndGenerateRLNProof from lightpush retry: " & error
|
||||
)
|
||||
return err("failed call checkAndGenerateRLNProof from lightpush retry: " & error)
|
||||
|
||||
return await internalPublish(node, pubsubForPublish, msgWithProof, peer)
|
||||
except CatchableError:
|
||||
|
||||
@ -185,8 +185,7 @@ suite "RLN Proofs as a Lightpush Service":
|
||||
# "RLN validation failed" rejection: an already attached proof must NOT
|
||||
# short-circuit checkAndGenerateRLNProof when forceMerkleProofRefresh=true,
|
||||
# and the cache must be refetched from chain instead of trusted.
|
||||
let firstMsg =
|
||||
(await checkAndGenerateRLNProof(some(server.rln), message)).get()
|
||||
let firstMsg = (await checkAndGenerateRLNProof(some(server.rln), message)).get()
|
||||
check firstMsg.proof.len > 0
|
||||
|
||||
# Corrupt the cache to model a stale/invalid witness — the same state a
|
||||
|
||||
@ -183,8 +183,7 @@ suite "RLN Proofs as a Lightpush Service":
|
||||
# attached proof must NOT short-circuit checkAndGenerateRLNProof when
|
||||
# forceMerkleProofRefresh=true, and the cache must be refetched from
|
||||
# chain instead of trusted.
|
||||
let firstMsg =
|
||||
(await checkAndGenerateRLNProof(some(server.rln), message)).get()
|
||||
let firstMsg = (await checkAndGenerateRLNProof(some(server.rln), message)).get()
|
||||
check firstMsg.proof.len > 0
|
||||
|
||||
# Corrupt the cache to model a stale/invalid witness — the same state a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user