From 061e676136613dce3ffd40c515aa58f99bda30d8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 7 Apr 2020 16:26:22 +0200 Subject: Refactor; ability to update network config --- src/proto.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/proto.rs') 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, } -- cgit v1.2.3