Skip to content

Commit

Permalink
Merge pull request AleoNet#1893 from niklaslong/api/message-clone
Browse files Browse the repository at this point in the history
Api: implement `Clone` for `Message`
  • Loading branch information
raychu86 authored Aug 25, 2022
2 parents 9a85a78 + 34c1127 commit 903a15d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snarkos/network/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use ::bytes::{Buf, BufMut, BytesMut};
use std::marker::PhantomData;
use tokio_util::codec::{Decoder, Encoder, LengthDelimitedCodec};

#[derive(Clone)]
pub enum Message<N: Network> {
/// Ping with the current block height.
Ping,
Expand Down

0 comments on commit 903a15d

Please sign in to comment.