fix storage

main
Ziyang Hu 1 year ago
parent 05f24ca369
commit 6468d287c3

@ -7,9 +7,9 @@
*/ */
use std::cmp::Ordering; use std::cmp::Ordering;
use std::iter;
use std::iter::Fuse; use std::iter::Fuse;
use std::path::Path; use std::path::Path;
use std::{iter, thread};
use itertools::Itertools; use itertools::Itertools;
use miette::{miette, IntoDiagnostic, Result}; use miette::{miette, IntoDiagnostic, Result};
@ -150,7 +150,7 @@ impl<'s> StoreTx<'s> for SledTx {
} }
for k_res in to_del.into_iter() { for k_res in to_del.into_iter() {
self.db.remove(&k_res)?; self.db.remove(&k_res).into_diagnostic()?;
} }
Ok(()) Ok(())
} }

@ -6,9 +6,9 @@
* You can obtain one at https://mozilla.org/MPL/2.0/. * You can obtain one at https://mozilla.org/MPL/2.0/.
*/ */
use std::iter;
use std::ops::Bound::{Excluded, Included}; use std::ops::Bound::{Excluded, Included};
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};
use std::{iter, thread};
use itertools::Itertools; use itertools::Itertools;
use lazy_static::lazy_static; use lazy_static::lazy_static;

Loading…
Cancel
Save