aboutsummaryrefslogtreecommitdiff
path: root/src/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-12 22:24:53 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-12 22:24:53 +0200
commit2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530 (patch)
tree8aab7a6d9d9849e6ad7962f1286dcd52ed48c916 /src/api_server.rs
parent9f8b3b5a1820f575e6621fd5f4f6cdf47b0a7742 (diff)
downloadgarage-2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530.tar.gz
garage-2bea76ce16c5dfc3ddead65adcd7b0bed2cf9530.zip
Small refactorings
Diffstat (limited to 'src/api_server.rs')
-rw-r--r--src/api_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api_server.rs b/src/api_server.rs
index 056d2aaf..441fbe1c 100644
--- a/src/api_server.rs
+++ b/src/api_server.rs
@@ -221,7 +221,7 @@ async fn put_block(garage: Arc<Garage>, hash: Hash, data: Vec<u8>) -> Result<(),
&who[..],
&Message::PutBlock(PutBlockMessage { hash, data }),
(garage.system.config.data_replication_factor + 1) / 2,
- DEFAULT_TIMEOUT,
+ BLOCK_RW_TIMEOUT,
)
.await?;
Ok(())
@@ -368,7 +368,7 @@ async fn get_block(garage: Arc<Garage>, hash: &Hash) -> Result<Vec<u8>, Error> {
&who[..],
&Message::GetBlock(hash.clone()),
1,
- DEFAULT_TIMEOUT,
+ BLOCK_RW_TIMEOUT,
)
.await?;