diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-13 12:12:55 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-13 12:12:55 +0200 |
commit | 8ab6256c3b5a2cde7144b3a5e1ef488b7bce6227 (patch) | |
tree | 224ddbd9268df33713aca686f3afc63ffac87ff7 /src/peering/fullmesh.rs | |
parent | 9362d268904de694328f20e9e3a31b569955787c (diff) | |
download | netapp-8ab6256c3b5a2cde7144b3a5e1ef488b7bce6227.tar.gz netapp-8ab6256c3b5a2cde7144b3a5e1ef488b7bce6227.zip |
No longer need to derive Clone on message types
Diffstat (limited to 'src/peering/fullmesh.rs')
-rw-r--r-- | src/peering/fullmesh.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peering/fullmesh.rs b/src/peering/fullmesh.rs index 2f3330e..fb2e3d1 100644 --- a/src/peering/fullmesh.rs +++ b/src/peering/fullmesh.rs @@ -30,7 +30,7 @@ const FAILED_PING_THRESHOLD: usize = 4; // -- Protocol messages -- -#[derive(Serialize, Deserialize, Clone)] +#[derive(Serialize, Deserialize)] struct PingMessage { pub id: u64, pub peer_list_hash: hash::Digest, @@ -40,7 +40,7 @@ impl Message for PingMessage { type Response = PingMessage; } -#[derive(Serialize, Deserialize, Clone)] +#[derive(Serialize, Deserialize)] struct PeerListMessage { pub list: Vec<(NodeID, SocketAddr)>, } |