diff options
author | Quentin <quentin@deuxfleurs.fr> | 2020-11-11 11:26:51 +0100 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2020-11-11 11:26:51 +0100 |
commit | e31aa0f7dfb4c8f014ce65cdf749141d2a9fec21 (patch) | |
tree | 286920418940dc40b679cdf71627d7fe276f0fc1 /src/model | |
parent | f01006a1f954cecb23085ceac5ec28f165a6f0d7 (diff) | |
parent | 045009da9b7ac4198574bd5aa256c11cfe4ae469 (diff) | |
download | garage-e31aa0f7dfb4c8f014ce65cdf749141d2a9fec21.tar.gz garage-e31aa0f7dfb4c8f014ce65cdf749141d2a9fec21.zip |
Merge branch 'master' into feature/refactor-s3
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/block.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/block.rs b/src/model/block.rs index af8b9efb..4e8bb7d9 100644 --- a/src/model/block.rs +++ b/src/model/block.rs @@ -123,7 +123,7 @@ impl BlockManager { Message::PutBlock(m) => self.write_block(&m.hash, &m.data).await, Message::GetBlock(h) => self.read_block(h).await, Message::NeedBlockQuery(h) => self.need_block(h).await.map(Message::NeedBlockReply), - _ => Err(Error::BadRequest(format!("Unexpected RPC message"))), + _ => Err(Error::BadRPC(format!("Unexpected RPC message"))), } } |