File tree Expand file tree Collapse file tree
linera-views/src/backends Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66use std:: sync:: { Arc , Mutex } ;
77
8+ use futures:: stream:: StreamExt ;
89use serde:: { Deserialize , Serialize } ;
910
1011#[ cfg( with_testing) ]
1112use crate :: memory:: MemoryDatabase ;
1213#[ cfg( with_testing) ]
1314use crate :: store:: TestKeyValueDatabase ;
14- use futures:: stream:: StreamExt ;
15-
1615use crate :: {
1716 batch:: { Batch , WriteOperation } ,
1817 lru_prefix_cache:: { LruPrefixCache , StorageCacheConfig } ,
Original file line number Diff line number Diff line change @@ -573,10 +573,7 @@ impl ReadableKeyValueStore for RocksDbStoreInternal {
573573 . await
574574 }
575575
576- fn find_keys_by_prefix_iter (
577- & self ,
578- key_prefix : & [ u8 ] ,
579- ) -> FindKeysStream < ' _ , Self :: Error > {
576+ fn find_keys_by_prefix_iter ( & self , key_prefix : & [ u8 ] ) -> FindKeysStream < ' _ , Self :: Error > {
580577 self . find_keys_stream ( key_prefix, IterDirection :: Forward )
581578 }
582579
@@ -587,10 +584,7 @@ impl ReadableKeyValueStore for RocksDbStoreInternal {
587584 self . find_key_values_stream ( key_prefix, IterDirection :: Forward )
588585 }
589586
590- fn find_keys_by_prefix_rev_iter (
591- & self ,
592- key_prefix : & [ u8 ] ,
593- ) -> FindKeysStream < ' _ , Self :: Error > {
587+ fn find_keys_by_prefix_rev_iter ( & self , key_prefix : & [ u8 ] ) -> FindKeysStream < ' _ , Self :: Error > {
594588 self . find_keys_stream ( key_prefix, IterDirection :: Reverse )
595589 }
596590
You can’t perform that action at this time.
0 commit comments