diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-07 16:26:22 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-07 16:26:22 +0200 |
commit | 061e676136613dce3ffd40c515aa58f99bda30d8 (patch) | |
tree | 53d441c60605aae7aaefdafb2734d5a446302ce3 /src/proto.rs | |
parent | 46d5b896e841a209ea92cac23d5f59dfc1ff885d (diff) | |
download | garage-061e676136613dce3ffd40c515aa58f99bda30d8.tar.gz garage-061e676136613dce3ffd40c515aa58f99bda30d8.zip |
Refactor; ability to update network config
Diffstat (limited to 'src/proto.rs')
-rw-r--r-- | src/proto.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/proto.rs b/src/proto.rs index 3a950c6c..3e679d35 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -1,8 +1,11 @@ +use std::time::Duration; use std::net::SocketAddr; use serde::{Serialize, Deserialize}; use crate::data::*; +pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(2); + #[derive(Debug, Serialize, Deserialize)] pub enum Message { Ok, @@ -29,4 +32,5 @@ pub struct PingMessage { pub struct AdvertisedNode { pub id: UUID, pub addr: SocketAddr, + pub datacenter: String, } |