You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
durable: small cleanups from the #234 reviews #248
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.
Activity
refactor(durable): share one arming sequence between live and replay