mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
fix mod/use order
Yes, it does actually bother me, thanks for asking.
This commit is contained in:
parent
287f6b9163
commit
5a490a4397
30 changed files with 83 additions and 50 deletions
|
|
@ -1,6 +1,3 @@
|
|||
pub(crate) mod abstraction;
|
||||
pub(crate) mod key_value;
|
||||
|
||||
use std::{
|
||||
collections::{BTreeMap, HashMap, HashSet},
|
||||
fs,
|
||||
|
|
@ -10,7 +7,6 @@ use std::{
|
|||
sync::{Arc, Mutex, RwLock},
|
||||
};
|
||||
|
||||
use abstraction::{KeyValueDatabaseEngine, KvTree};
|
||||
use lru_cache::LruCache;
|
||||
use ruma::{
|
||||
events::{
|
||||
|
|
@ -35,6 +31,11 @@ use crate::{
|
|||
services, utils, Config, Error, PduEvent, Result,
|
||||
};
|
||||
|
||||
pub(crate) mod abstraction;
|
||||
pub(crate) mod key_value;
|
||||
|
||||
use abstraction::{KeyValueDatabaseEngine, KvTree};
|
||||
|
||||
pub(crate) struct KeyValueDatabase {
|
||||
db: Arc<dyn KeyValueDatabaseEngine>,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue