## Description When all the probes time out the reportgen actor went into a hot-loop. We slow this down by resetting the timer to be in the future again. This way the actor loop can finish normally from the probes without entering a hot-loop. The actual timeout doesn't matter too much, normally it should not happen twice as the actor should be finished by the time another PROBES_TIMEOUT expires. ## Breaking Changes None ## Notes & open questions Fixes #2684. I've never been very happy with the mainloop of the reportgen actor. There is too much manual state-tracking also with the way self.outstanding_tasks is structured. Also the way that Message::ProbeWouldHelp exists is not nice, the actor should be able to abort any probes on it's own when they are no longer needed. Maybe I should sit down again sometime and think better about how to structure this. Nevertheless, this is a good fix for a real problem. I'm not sure it's possible to write tests for this in a reasonable way without manipulating the state entirely artificially. Another reason that this logic would be better expressed with more typesystem help. ## Change checklist - [x] Self-review. - ~~[ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant.~~ - [ ] Tests if relevant. - ~~[ ] All breaking changes documented.~~
A toolkit for building distributed applications
Features
- Documents - Authors create and join documents: mutable key-value stores that multiple users read from, write to, and sync with, subscribing to live updates in real time.
- Blobs - Iroh works with content-addressed blobs of opaque data, which are often the bytes of a file.
- Networking - At the core of iroh is the ability to connect any two devices, no matter where they are.
Overview
Iroh is a protocol for syncing & moving bytes. Bytes of any size, on any device. At its core, it's a peer-2-peer network built on a magic socket that establishes QUIC connections between peers. Peers request and provide blobs of opaque bytes that are incrementally verified by their BLAKE3 hash during transfer.
Getting Started
Iroh is delivered as a Rust library and a CLI.
Library
Run cargo add iroh, to add iroh to your project.
CLI
Check out https://iroh.computer/docs/install to get started.
The implementation lives in the iroh-cli crate.
Links
License
Copyright 2024 N0, INC.
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.