Skip to content

docs: spark send liveness comment overstates a counted send #1919

Done

Description

@ovitrif

Description

The comment added in #1918 above settledSparkSendOutcome's first reads says a send the mark counts "is already admitted or in flight when liveness is read". That holds only while the send is still running: a send recorded before the mark may already have been released when isSendLive runs. The order stays safe then, since that send ended before the row read, so lightningSend reflects it.

Fix

Reword the comment, as suggested in #1918 (comment):

The mark comes first, so a send it counts was admitted before liveness is read: still live then, or ended before the row is read.

Comment-only; it rides along with the next change to LightningRepo.kt, without a PR of its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions