From c21317dc5877c4df7054fd47d8765ecaaa19d480 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 15 Jan 2021 18:21:51 +0100 Subject: Branch out garage_model from 0.1.0 to fix incompatibility with garage_util 0.1.1 --- src/model/Cargo.toml | 4 ++-- src/model/block.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/model/Cargo.toml b/src/model/Cargo.toml index 76d759fd..01f9136c 100644 --- a/src/model/Cargo.toml +++ b/src/model/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "garage_model" -version = "0.1.0" +name = "garage_model_010b" +version = "0.0.1" authors = ["Alex Auvolat "] edition = "2018" license = "GPL-3.0" 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"))), } } -- cgit v1.2.3