mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-21 10:26:36 +00:00
Keep network status & ring in a tokio::sync::watch
advantages - reads don't prevent preparing writes - can be followed from other parts of the system by cloning the receiver
This commit is contained in:
@@ -55,8 +55,11 @@ impl TableFormat for BlockRefTable {
|
||||
}
|
||||
}
|
||||
if was_before && !is_after {
|
||||
if let Err(e) = garage.block_manager.block_decref(&new.block, &garage.background) {
|
||||
eprintln!("Failed to decref or delete block {:?}: {}", &new.block, e);
|
||||
if let Err(e) = garage
|
||||
.block_manager
|
||||
.block_decref(&new.block, &garage.background)
|
||||
{
|
||||
eprintln!("Failed to decref block {:?}: {}", &new.block, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user