diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-06 16:29:02 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-06 16:29:02 +0200 |
commit | 1dabd98330cedd108c42b7613a1f29fc4e4123ad (patch) | |
tree | ee2620290c92f8e1a974f341c80f26dc356d2139 /src/table/data.rs | |
parent | 9238fda9b245beb3ff535a16eda7859aed277bc6 (diff) | |
download | garage-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.rs | 4 |
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()?) } } |