Fix linting

This commit is contained in:
stubbsta 2026-07-02 14:16:00 +02:00
parent 1473301b09
commit 287bafc45c
No known key found for this signature in database
3 changed files with 3 additions and 7 deletions

View File

@ -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:

View File

@ -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

View File

@ -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