Skip to content

Commit

Permalink
Update iroh-router/src/router.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Floris Bruynooghe <flub@n0.computer>
  • Loading branch information
dignifiedquire and flub committed Oct 24, 2024
1 parent 9eeee23 commit 01de8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh-router/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::{ProtocolHandler, ProtocolMap};
pub struct Router {
endpoint: Endpoint,
protocols: Arc<ProtocolMap>,
// `Node` needs to be `Clone + Send`, and we need to `task.await` in its `shutdown()` impl.
// `Router` needs to be `Clone + Send`, and we need to `task.await` in its `shutdown()` impl.
// So we need
// - `Shared` so we can `task.await` from all `Node` clones
// - `MapErr` to map the `JoinError` to a `String`, because `JoinError` is `!Clone`
Expand Down

0 comments on commit 01de8db

Please sign in to comment.