Ununderstandable error

This commit is contained in:
Alex Auvolat
2020-04-06 22:27:51 +02:00
parent 3c36b449a3
commit 87f2b4d2fc
4 changed files with 188 additions and 40 deletions
+7 -4
View File
@@ -9,7 +9,10 @@ pub enum Message {
Error(String),
Ping(PingMessage),
AdvertiseNode(AdvertiseNodeMessage),
PullStatus,
PullConfig,
AdvertiseNodesUp(Vec<AdvertisedNode>),
AdvertiseConfig(NetworkConfig),
}
#[derive(Debug, Serialize, Deserialize)]
@@ -17,12 +20,12 @@ pub struct PingMessage {
pub id: UUID,
pub rpc_port: u16,
pub present_hash: Hash,
pub status_hash: Hash,
pub config_version: u64,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct AdvertiseNodeMessage {
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct AdvertisedNode {
pub id: UUID,
pub addr: SocketAddr,
}