aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-18 19:30:05 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-18 19:30:05 +0200
commitbd1618e78e4c4305a73bdd40004de2abe46c3ceb (patch)
tree8d84b73808a3a968941a59672aae398a61f8d5ff /src/server.rs
parentf41583e1b731574b4bb13a20d4b3fd9fe3a899f5 (diff)
downloadgarage-bd1618e78e4c4305a73bdd40004de2abe46c3ceb.tar.gz
garage-bd1618e78e4c4305a73bdd40004de2abe46c3ceb.zip
Remove proto.rs & move some definitions out of data.rs
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs
index 57faea21..099e087e 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -2,6 +2,7 @@ use std::io::{Read, Write};
use std::net::SocketAddr;
use std::path::PathBuf;
use std::sync::Arc;
+use std::time::Duration;
pub use futures_util::future::FutureExt;
use serde::Deserialize;
@@ -10,12 +11,16 @@ use tokio::sync::watch;
use crate::api_server;
use crate::background::*;
use crate::block::*;
+use crate::block_ref_table::*;
use crate::data::*;
use crate::error::Error;
use crate::membership::System;
-use crate::proto::*;
+use crate::object_table::*;
use crate::rpc_server::RpcServer;
use crate::table::*;
+use crate::version_table::*;
+
+pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(10);
#[derive(Deserialize, Debug, Clone)]
pub struct Config {