aboutsummaryrefslogtreecommitdiff
path: root/src/block/manager.rs
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-03-09 17:08:47 +0000
committerJonathan Davies <jpds@protonmail.com>2023-03-09 17:08:47 +0000
commitd218f475cbe6450f0402424e01b99c4630cb8a2f (patch)
tree949f392d772dddac75b461c5e759060905ed2586 /src/block/manager.rs
parent7b65dd24e2bacc20afa747dc2b1f3fb81249f688 (diff)
downloadgarage-d218f475cbe6450f0402424e01b99c4630cb8a2f.tar.gz
garage-d218f475cbe6450f0402424e01b99c4630cb8a2f.zip
block/manager.rs: Set defaults for scrub_persister.
Diffstat (limited to 'src/block/manager.rs')
-rw-r--r--src/block/manager.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/block/manager.rs b/src/block/manager.rs
index bfa66069..26278974 100644
--- a/src/block/manager.rs
+++ b/src/block/manager.rs
@@ -152,6 +152,7 @@ impl BlockManager {
tx_scrub_command: ArcSwapOption::new(None),
});
block_manager.endpoint.set_handler(block_manager.clone());
+ block_manager.scrub_persister.set_with(|_| ()).unwrap();
block_manager
}