fix mod/use order

Yes, it does actually bother me, thanks for asking.
This commit is contained in:
Charles Hall 2024-10-03 15:28:24 -07:00
parent 287f6b9163
commit 5a490a4397
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
30 changed files with 83 additions and 50 deletions

View file

@ -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>,