Skip to content

Commit

Permalink
feat: implement Clone for Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Nov 19, 2020
1 parent 1e5ee89 commit 51de4c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use std::{net::SocketAddr, sync::Arc};
use tokio::select;

/// Connection instance to a node which can be used to send messages to it
#[derive(Clone)]
pub struct Connection {
quic_conn: quinn::Connection,
remover: ConnectionRemover,
Expand Down

0 comments on commit 51de4c8

Please sign in to comment.