diff options
| author | tv <tv@krebsco.de> | 2026-11-01 20:34:59 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 20:34:59 +0100 |
| commit | 7f018573730dc57f9608fe41faa54b44abba841d (patch) | |
| tree | 1c77e9b4756dc92ce1088acb6e8d3e44eee712f9 /src/transport/mod.rs | |
| parent | 7b8a6c75a13547bc9e541a6a9fcba01b0df06188 (diff) | |
bootstrap: replace pull by progress notify
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 5ad2427..a802269 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -818,6 +818,12 @@ pub(crate) trait Transport: Send + Sync { Vec::new() } + /// Has the transport tell `found` whenever it finds a seed by itself + /// (`discovered_seeds`). By default it never does. + fn on_seeds_found(&self, found: std::sync::Arc<tokio::sync::Notify>) { + let _ = found; + } + /// Whether this node has a way to reach `peer` at all: an address of it on one of /// its transports. Members it can't reach aren't its neighbours (`swarm::topology`). /// By default yes, as for `local_addresses`. |
