Skip to content

Miscellaneous changes for the zone signer#486

Merged
bal-e merged 7 commits intomainfrom
misc-signer-prep
Mar 3, 2026
Merged

Miscellaneous changes for the zone signer#486
bal-e merged 7 commits intomainfrom
misc-signer-prep

Conversation

@bal-e
Copy link
Contributor

@bal-e bal-e commented Feb 27, 2026

These are miscellaneous commits I piled up while integrating the zone signer with the new zone storage. An overview:

  • Implement Debug for the zone builder types so I can hold them in ZoneState.
  • Refactor the loader's RefreshMonitor into a generic Scheduler, so it can be used for tracking zone re-signing too.
    • As part of this, inline Loader::remove_zone(), as it contained makeshift code that accessed the internals of the RefreshMonitor. Once inlined, the problem goes away.
  • Make force_future() a standalone function in zone/storage.rs so it looks less weird when I use it in multiple impl blocks.

@bal-e bal-e requested a review from ximon18 February 27, 2026 11:44
@bal-e bal-e self-assigned this Feb 27, 2026
@bal-e bal-e force-pushed the misc-signer-prep branch 2 times, most recently from 5f2fc0e to 08538f2 Compare February 27, 2026 11:59
@bal-e bal-e requested review from tertsdiepraam and removed request for ximon18 February 27, 2026 12:00
/// Given the old and new scheduled times for an item, the scheduler's state
/// will be updated, so that the item is refreshed at the new scheduled time
/// (if any) instead of the old.
pub fn update(&self, item: &T, old: Option<Instant>, new: Option<Instant>) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fn doc string doesn't explain why the instants are optional or what it means if one or the other is None.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've extended the documentation to better explain what this function does.

}

(None, Some(item)) => {
// If the item is already present in the schedule, an internal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you not want to detect and warn about this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added trace message logging.

@bal-e bal-e requested review from mozzieongit and ximon18 March 3, 2026 16:26
@bal-e bal-e force-pushed the misc-signer-prep branch from e6bd9f9 to c692ac4 Compare March 3, 2026 16:45
@bal-e
Copy link
Contributor Author

bal-e commented Mar 3, 2026

Force-pushing to clean up history before I merge.

@bal-e bal-e merged commit fd3ec92 into main Mar 3, 2026
9 checks passed
@bal-e bal-e deleted the misc-signer-prep branch March 3, 2026 16:47
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.

3 participants