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

feat(iroh-net): Add a Watchable struct for use in the Endpoint API #2806

Merged
merged 32 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
70f61a8
feat(iroh-net): Ported & modified `Watcher` implementation
matheus23 Oct 1, 2024
f946f07
feat(iroh-net): Add a Watchable struct
flub Oct 15, 2024
9982640
Merge branch 'main' into flub/watchable
matheus23 Nov 20, 2024
daa3b67
Test with loom, fix race condition, switch to Mutex for wakers
matheus23 Nov 20, 2024
1141fc9
Correct spelling
matheus23 Nov 20, 2024
22498c2
Improved `Watchable` and `Watcher` impl & API
matheus23 Nov 21, 2024
be17d23
Whoops fix test
matheus23 Nov 21, 2024
0e6bdf7
Compiles but fails tests
matheus23 Nov 22, 2024
a49e2a6
Merge branch 'main' into flub/watchable
matheus23 Dec 6, 2024
fe813ca
Fix `Watchable::set` implementation
matheus23 Dec 6, 2024
4a24c89
Address code review, make `Watcher` and `Watchable` available in pub API
matheus23 Dec 10, 2024
d287847
Merge branch 'main' into flub/watchable
matheus23 Dec 11, 2024
2de930b
Make `Watchable` not uninitialized by default.
matheus23 Dec 11, 2024
675e04d
Fix a possible race condition
matheus23 Dec 11, 2024
a186583
Adjust documentation to match implementation
matheus23 Dec 11, 2024
4dea829
Merge remote-tracking branch 'origin/main' into flub/watchable
matheus23 Dec 11, 2024
f7d4c24
Convert `DirectAddrStream` into `Watcher<Option<BTreeSet<DirectAddr>>>`
matheus23 Dec 11, 2024
3f0f65b
Merge `Endpoint::{home_relay, watch_home_realy}` together via a `Watc…
matheus23 Dec 11, 2024
b76f11b
Move `iroh::util::watchable` to `iroh::watchable` and make `util` `pu…
matheus23 Dec 11, 2024
90e825d
Adjust `util::watchable` imports to use `watchable`
matheus23 Dec 12, 2024
c6cde17
Merge remote-tracking branch 'origin/main' into flub/watchable
matheus23 Dec 12, 2024
c824573
`cargo +nightly clippy -p iroh --fix`
matheus23 Dec 12, 2024
8e485bb
`cargo make format`
matheus23 Dec 12, 2024
1974629
Small fixes
matheus23 Dec 12, 2024
890cb87
Merge remote-tracking branch 'origin/main' into flub/watchable
matheus23 Dec 12, 2024
e26a7f9
Add documentation about cancel safety and a small test
matheus23 Dec 12, 2024
bd58548
Merge remote-tracking branch 'origin/main' into flub/watchable
matheus23 Dec 12, 2024
6ca0f71
Better wording in documentation
matheus23 Dec 12, 2024
86bc24b
Remove unused imports
matheus23 Dec 12, 2024
37dead3
Fix doc links
matheus23 Dec 12, 2024
ac9d9d2
Fix newly introduced clippy lints
matheus23 Dec 12, 2024
6f078e9
Use `Watchable::default()` when appropriate
matheus23 Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions iroh-net/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use std::{
};

pub(crate) mod chain;
pub mod watchable;

/// Resolves to pending if the inner is `None`.
#[derive(Debug)]
Expand Down
Loading
Loading