aboutsummaryrefslogtreecommitdiff
path: root/src/table/data.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-06 16:29:02 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-06 16:29:02 +0200
commit1dabd98330cedd108c42b7613a1f29fc4e4123ad (patch)
treeee2620290c92f8e1a974f341c80f26dc356d2139 /src/table/data.rs
parent9238fda9b245beb3ff535a16eda7859aed277bc6 (diff)
downloadgarage-1dabd98330cedd108c42b7613a1f29fc4e4123ad.tar.gz
garage-1dabd98330cedd108c42b7613a1f29fc4e4123ad.zip
Improve things in block manager & correctly propagate .len() errors
Diffstat (limited to 'src/table/data.rs')
-rw-r--r--src/table/data.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/data.rs b/src/table/data.rs
index e688168f..839dae94 100644
--- a/src/table/data.rs
+++ b/src/table/data.rs
@@ -318,7 +318,7 @@ where
}
}
- pub fn gc_todo_len(&self) -> usize {
- self.gc_todo.len().unwrap() // TODO fix unwrap
+ pub fn gc_todo_len(&self) -> Result<usize, Error> {
+ Ok(self.gc_todo.len()?)
}
}