Skip to content

Commit

Permalink
endpoint: make IncomingSession future Send and Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
BiagioFesta committed Jun 26, 2023
1 parent ad426ac commit 3c067fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wtransport/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ impl Endpoint<Client> {
}
}

type DynFutureIncomingSession = dyn Future<Output = Result<SessionRequest, ConnectionError>>;
type DynFutureIncomingSession =
dyn Future<Output = Result<SessionRequest, ConnectionError>> + Send + Sync;

/// [`Future`] for an in-progress incoming connection attempt.
///
Expand Down

0 comments on commit 3c067fd

Please sign in to comment.