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
refactor(pullsync): replace hasValidationError flag with two-bucket error accumulators
The hasValidationError bool was set at six separate sites and acted on in
a deferred block at the end of Sync(). This is an outlier in the bee
codebase, where the standard pattern is to use error accumulators whose
nil-ness is the condition.
Replace with two accumulators that express the existing semantic distinction
structurally:
chunkErr — stamp, solicitation, and structural failures. A non-nil
chunkErr zeros topmost, preventing interval advancement past
BinIDs whose chunks were never stored.
overwriteErr — ErrOverwriteNewerChunk only. The chunk is already present
in the reserve; advancing the interval past it is correct,
so overwriteErr does not affect topmost.
Both accumulators are joined on return, preserving the caller contract:
all errors remain reachable via errors.Is. No interface change. No
behaviour change.
0 commit comments