aboutsummaryrefslogtreecommitdiff
path: root/src/proto.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-06 22:27:51 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-06 22:27:51 +0200
commit87f2b4d2fc8835f8adda69adb6b51fd73ffb20a5 (patch)
treeb28f8e2c585489f51fc083d343179e25d8f8c76a /src/proto.rs
parent3c36b449a3786bb62fa023bde37bac24635b5717 (diff)
downloadgarage-87f2b4d2fc8835f8adda69adb6b51fd73ffb20a5.tar.gz
garage-87f2b4d2fc8835f8adda69adb6b51fd73ffb20a5.zip
Ununderstandable error
Diffstat (limited to 'src/proto.rs')
-rw-r--r--src/proto.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/proto.rs b/src/proto.rs
index 6cb12598..8b60784e 100644
--- a/src/proto.rs
+++ b/src/proto.rs
@@ -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,
}