aboutsummaryrefslogtreecommitdiff
path: root/src/proto.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-17 19:16:08 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-17 19:16:08 +0200
commit4abfb75509f216f4d62bc8b18b22eb680eefe2d9 (patch)
treecf70746c4348cd6523ee11679e35c55f28aea7ba /src/proto.rs
parentdb1c4222cefa99c6a4453da13bdb4f206b4b05a5 (diff)
downloadgarage-4abfb75509f216f4d62bc8b18b22eb680eefe2d9.tar.gz
garage-4abfb75509f216f4d62bc8b18b22eb680eefe2d9.zip
Implement sending blocks to nodes that need them
Diffstat (limited to 'src/proto.rs')
-rw-r--r--src/proto.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto.rs b/src/proto.rs
index 7d8d3899..cf7ed1cc 100644
--- a/src/proto.rs
+++ b/src/proto.rs
@@ -20,6 +20,8 @@ pub enum Message {
GetBlock(Hash),
PutBlock(PutBlockMessage),
+ NeedBlockQuery(Hash),
+ NeedBlockReply(bool),
TableRPC(String, #[serde(with = "serde_bytes")] Vec<u8>),
}