mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21:24 +01:00
fix mod/use order
I wish rustfmt could figure this out.
This commit is contained in:
parent
91739899e7
commit
41c01ad1b7
1 changed files with 5 additions and 4 deletions
|
|
@ -1,6 +1,3 @@
|
||||||
pub(crate) mod abstraction;
|
|
||||||
pub(crate) mod key_value;
|
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
collections::{BTreeMap, HashMap, HashSet},
|
collections::{BTreeMap, HashMap, HashSet},
|
||||||
fs,
|
fs,
|
||||||
|
|
@ -10,7 +7,6 @@ use std::{
|
||||||
sync::{Arc, Mutex, RwLock},
|
sync::{Arc, Mutex, RwLock},
|
||||||
};
|
};
|
||||||
|
|
||||||
use abstraction::{KeyValueDatabaseEngine, KvTree};
|
|
||||||
use lru_cache::LruCache;
|
use lru_cache::LruCache;
|
||||||
use ruma::{
|
use ruma::{
|
||||||
events::{
|
events::{
|
||||||
|
|
@ -30,6 +26,11 @@ use crate::{
|
||||||
PduEvent, Result, Services, SERVICES,
|
PduEvent, Result, Services, SERVICES,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub(crate) mod abstraction;
|
||||||
|
pub(crate) mod key_value;
|
||||||
|
|
||||||
|
use abstraction::{KeyValueDatabaseEngine, KvTree};
|
||||||
|
|
||||||
pub(crate) struct KeyValueDatabase {
|
pub(crate) struct KeyValueDatabase {
|
||||||
db: Arc<dyn KeyValueDatabaseEngine>,
|
db: Arc<dyn KeyValueDatabaseEngine>,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue