mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-09 22:19:23 +00:00
Implement sending blocks to nodes that need them
This commit is contained in:
@@ -66,6 +66,11 @@ async fn handler(
|
||||
tokio::spawn(write_fut).await?
|
||||
}
|
||||
Message::GetBlock(h) => garage.block_manager.read_block(&h).await,
|
||||
Message::NeedBlockQuery(h) => garage
|
||||
.block_manager
|
||||
.need_block(&h)
|
||||
.await
|
||||
.map(Message::NeedBlockReply),
|
||||
|
||||
Message::TableRPC(table, msg) => {
|
||||
// Same trick for table RPCs than for PutBlock
|
||||
|
||||
Reference in New Issue
Block a user