|
|
|
|
@ -17,6 +17,8 @@ use std::{
@@ -17,6 +17,8 @@ use std::{
|
|
|
|
|
time::{Duration, Instant}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
use tracing::warn; |
|
|
|
|
|
|
|
|
|
pub struct PersyEngine { |
|
|
|
|
persy: Persy, |
|
|
|
|
write_cache: Arc<RwLock<WriteCache>>, |
|
|
|
|
@ -415,7 +417,7 @@ impl Tree for PersyTree {
@@ -415,7 +417,7 @@ impl Tree for PersyTree {
|
|
|
|
|
self.write_cache.read().unwrap().iter(&self.name, result) |
|
|
|
|
} |
|
|
|
|
Err(e) => { |
|
|
|
|
log::warn!("error iterating {:?}", e); |
|
|
|
|
warn!("error iterating {:?}", e); |
|
|
|
|
Box::new(std::iter::empty()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -453,7 +455,7 @@ impl Tree for PersyTree {
@@ -453,7 +455,7 @@ impl Tree for PersyTree {
|
|
|
|
|
.iter_from(&self.name, from, backwards, result) |
|
|
|
|
} |
|
|
|
|
Err(e) => { |
|
|
|
|
log::warn!("error iterating with prefix {:?}", e); |
|
|
|
|
warn!("error iterating with prefix {:?}", e); |
|
|
|
|
Box::new(std::iter::empty()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -493,7 +495,7 @@ impl Tree for PersyTree {
@@ -493,7 +495,7 @@ impl Tree for PersyTree {
|
|
|
|
|
.scan_prefix(&self.name, prefix, result) |
|
|
|
|
} |
|
|
|
|
Err(e) => { |
|
|
|
|
log::warn!("error scanning prefix {:?}", e); |
|
|
|
|
warn!("error scanning prefix {:?}", e); |
|
|
|
|
Box::new(std::iter::empty()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|