aboutsummaryrefslogtreecommitdiff
path: root/src/proto.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto.rs')
-rw-r--r--src/proto.rs4
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,
}