Skip to content

fix(shared): hold whole seconds in a Period - #172

Open
PiquelChips wants to merge 1 commit into
fix/bound-what-reading-each-object-readsfrom
fix/hold-whole-seconds-in-a-period
Open

PiquelChips wants to merge 1 commit into
fix/bound-what-reading-each-object-readsfrom
fix/hold-whole-seconds-in-a-period

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Period wrapped any Duration, but it displays, and goes over the wire, in whole seconds, so a sub-second part was dropped without a word. It now holds whole seconds: you build one with Period::from_secs and read it with Period::duration, so it always displays as what it is. The CI worker's long-poll wait is a Period too, so it no longer converts from a Duration.

Part of #166.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 34964b79-4867-4fa2-9772-a43e8a05c3ab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #185 November 22, 2026 20:21
@PiquelChips
PiquelChips removed this pull request from stack #185 November 22, 2026 20:22
Period wrapped any Duration, but it displays, and goes over the wire, in
whole seconds: a sub-second part was dropped silently. It now holds whole
seconds, built with Period::from_secs and read with Period::duration, so
it always displays as what it is. The CI worker's long-poll wait is a
Period too.
@PiquelChips
PiquelChips force-pushed the fix/hold-whole-seconds-in-a-period branch from 9ca64c3 to c1a7051 Compare November 22, 2026 20:22
@PiquelChips
PiquelChips force-pushed the fix/bound-what-reading-each-object-reads branch from 50c363b to 81576a0 Compare November 22, 2026 20:22
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