Skip to content

durable: small cleanups from the #234 reviews #248

In review

Description

@reka18

Three small cleanups the reviews of #234 found. None changes behavior.

  • One arming sequence. Forgetting a step's settled services, arming its timers (only when it schedules or cancels one) and absorbing its services is written three times: absorbDrivers, absorbParentFire and replayArm in durable/runner.go. Live and replay must take the same clock reads in the same order, so one shared helper would keep a later change from updating one path and missing the others.
  • One error helper. resultErrs and parentFireErrs in durable/runner.go are the same loop over two element types. One helper would cover both.
  • One parse of StateAt's baseline. StateAt decodes the baseline checkpoint envelope twice, once in restoreBaseline for its snapshot and once for its journal format. Decoding it once and passing it to both would halve that work on every time-travel read.

Relates to: #234

Activity

  1. added a commit that references this issue on Nov 26, 2026
    22cdf67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions