Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(iroh-net): Remove incremental state from reportgen actor #2180

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

flub
Copy link
Contributor

@flub flub commented Apr 12, 2024

Description

The reportgen actor was carrying this "incremental" state around in
two ways: as an Option in last_report and as a boolean in incremental.
It's simpler to have less state and only carry it as an Option.

Notes & open questions

Change checklist

  • Self-review.
  • [ ] Documentation updates if relevant.
  • [ ] Tests if relevant.

The reportgen actor was carrying this "incremental" state around in
two ways: as an Option in last_report and as a boolean in incremental.
It's simpler to have less state and only carry it as an Option.
@flub flub enabled auto-merge April 12, 2024 09:29
Copy link
Contributor

@rklaehn rklaehn left a comment

Choose a reason for hiding this comment

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

👍 this avoids having to deal with the state where incremental is false but last_report is Some. Make invalid states unrepresentable!

@flub flub added this pull request to the merge queue Apr 15, 2024
Merged via the queue into main with commit d22c1cd Apr 15, 2024
20 checks passed
@dignifiedquire dignifiedquire deleted the flub/reportgen-no-incremental branch April 15, 2024 07:40
Frando added a commit that referenced this pull request Apr 29, 2024
## Description

This adds a test for iroh-dns-server with mainline fallback resolution.
Needed to rework the config structure a little to not duplicate code too
much.

## Breaking Changes

are documented in #2180 

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants