mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
remove pointless pub(crate) and use self::
And also fix the ordering of things in state_compressor.
This commit is contained in:
parent
c7e03a06f7
commit
0643a3f081
3 changed files with 8 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ use tracing::warn;
|
||||||
|
|
||||||
mod proxy;
|
mod proxy;
|
||||||
|
|
||||||
use self::proxy::ProxyConfig;
|
use proxy::ProxyConfig;
|
||||||
|
|
||||||
#[allow(clippy::struct_excessive_bools)]
|
#[allow(clippy::struct_excessive_bools)]
|
||||||
#[derive(Clone, Debug, Deserialize)]
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ use tower_http::{
|
||||||
};
|
};
|
||||||
use tracing::{debug, info, info_span, warn, Instrument};
|
use tracing::{debug, info, info_span, warn, Instrument};
|
||||||
|
|
||||||
pub(crate) mod api;
|
mod api;
|
||||||
pub(crate) mod clap;
|
mod clap;
|
||||||
mod config;
|
mod config;
|
||||||
mod database;
|
mod database;
|
||||||
mod error;
|
mod error;
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,22 @@
|
||||||
pub(crate) mod data;
|
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashSet,
|
collections::HashSet,
|
||||||
mem::size_of,
|
mem::size_of,
|
||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub(crate) use data::Data;
|
|
||||||
use lru_cache::LruCache;
|
use lru_cache::LruCache;
|
||||||
use ruma::{EventId, RoomId};
|
use ruma::{EventId, RoomId};
|
||||||
|
|
||||||
use self::data::StateDiff;
|
|
||||||
use crate::{
|
use crate::{
|
||||||
observability::{FoundIn, Lookup, METRICS},
|
observability::{FoundIn, Lookup, METRICS},
|
||||||
services, utils, Result,
|
services, utils, Result,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub(crate) mod data;
|
||||||
|
|
||||||
|
pub(crate) use data::Data;
|
||||||
|
use data::StateDiff;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub(crate) struct CompressedStateLayer {
|
pub(crate) struct CompressedStateLayer {
|
||||||
pub(crate) shortstatehash: u64,
|
pub(crate) shortstatehash: u64,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue