diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-12 22:24:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-12 22:24:53 +0200 |
commit | 2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530 (patch) | |
tree | 8aab7a6d9d9849e6ad7962f1286dcd52ed48c916 /src/proto.rs | |
parent | 9f8b3b5a1820f575e6621fd5f4f6cdf47b0a7742 (diff) | |
download | garage-2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530.tar.gz garage-2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530.zip |
Small refactorings
Diffstat (limited to 'src/proto.rs')
-rw-r--r-- | src/proto.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto.rs b/src/proto.rs index b39f49ed..7d8d3899 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -4,7 +4,8 @@ use std::time::Duration; use crate::data::*; -pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(30); +pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(10); +pub const BLOCK_RW_TIMEOUT: Duration = Duration::from_secs(42); #[derive(Debug, Serialize, Deserialize)] pub enum Message { |