aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-01-15 18:21:51 +0100
committerAlex Auvolat <alex@adnab.me>2021-01-15 18:21:51 +0100
commitc21317dc5877c4df7054fd47d8765ecaaa19d480 (patch)
tree2aed8e650f13bea0d1735ae6b02d6a591f41e3e6 /src/model
parent3b0b11085e0501afcc16f6a75632a4d425146158 (diff)
downloadgarage-0.1.0b.tar.gz
garage-0.1.0b.zip
Branch out garage_model from 0.1.0 to fix incompatibility with garage_util 0.1.10.1.0b
Diffstat (limited to 'src/model')
-rw-r--r--src/model/Cargo.toml4
-rw-r--r--src/model/block.rs2
2 files changed, 3 insertions, 3 deletions
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 <alex@adnab.me>"]
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"))),
}
}