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 | 962fe4b43632822dc91fa6a4da6f6f295f4dba32 (patch) | |
| tree | 5dd0b5c144f9e2e93ea498cab1df9d2295d49f70 /src/transport/mod.rs | |
| parent | bb0716c8f199f7efb0f89a711a649f89cb09931f (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`. |
