remove pointless pub(crate) and use self::

And also fix the ordering of things in state_compressor.
This commit is contained in:
Charles Hall 2024-06-06 21:31:22 -07:00
parent c7e03a06f7
commit 0643a3f081
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 8 additions and 6 deletions

View file

@ -11,7 +11,7 @@ use tracing::warn;
mod proxy;
use self::proxy::ProxyConfig;
use proxy::ProxyConfig;
#[allow(clippy::struct_excessive_bools)]
#[derive(Clone, Debug, Deserialize)]

View file

@ -40,8 +40,8 @@ use tower_http::{
};
use tracing::{debug, info, info_span, warn, Instrument};
pub(crate) mod api;
pub(crate) mod clap;
mod api;
mod clap;
mod config;
mod database;
mod error;

View file

@ -1,20 +1,22 @@
pub(crate) mod data;
use std::{
collections::HashSet,
mem::size_of,
sync::{Arc, Mutex},
};
pub(crate) use data::Data;
use lru_cache::LruCache;
use ruma::{EventId, RoomId};
use self::data::StateDiff;
use crate::{
observability::{FoundIn, Lookup, METRICS},
services, utils, Result,
};
pub(crate) mod data;
pub(crate) use data::Data;
use data::StateDiff;
#[derive(Clone)]
pub(crate) struct CompressedStateLayer {
pub(crate) shortstatehash: u64,