Skip to content

cow: model Verdict::Post next-poll timestamp as Option<u64> - #593

Merged
mfw78 merged 1 commit into
dev/m1from
cow/567-next-poll-option
Jul 25, 2026
Merged

cow: model Verdict::Post next-poll timestamp as Option<u64>#593
mfw78 merged 1 commit into
dev/m1from
cow/567-next-poll-option

Conversation

@mfw78

@mfw78 mfw78 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What

Verdict::Post::next_poll_timestamp becomes Option<u64>. None replaces the 0 sentinel that meant "no next poll", so the absent case is typed rather than a magic value a caller can do arithmetic on by accident.

Why

0 as "no next poll" is indistinguishable from a genuine (if nonsensical) epoch-0 timestamp and lets a caller compute on it silently. Modelling it as Option<u64> makes the absent case explicit at every read.

Testing

Full battery on the pinned 1.94 toolchain, all green:

  • nix develop --command just ci (fmt, clippy -D warnings, doc, module wasms, cargo test --workspace --all-features)
  • nix develop --command just check-venue-agnostic
  • nix develop --command just check-cow-orderbook-only

AI Assistance

Implemented with Claude Code.

Closes #567

@mfw78
mfw78 merged commit 6a5c334 into dev/m1 Jul 25, 2026
7 checks passed
@mfw78
mfw78 deleted the cow/567-next-poll-option branch July 25, 2026 01:19
mfw78 added a commit that referenced this pull request Jul 27, 2026
cow: model Verdict::Post next-poll timestamp as Option

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant