feat: handle backfill requests

Based on https://gitlab.com/famedly/conduit/-/merge_requests/421
This commit is contained in:
Timo Kösters 2023-02-18 13:20:20 +01:00
parent 84cfed5231
commit 23b18d71ee
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB
4 changed files with 199 additions and 6 deletions

View file

@ -77,7 +77,12 @@ impl Services {
search: rooms::search::Service { db },
short: rooms::short::Service { db },
state: rooms::state::Service { db },
state_accessor: rooms::state_accessor::Service { db },
state_accessor: rooms::state_accessor::Service {
db,
server_visibility_cache: Mutex::new(LruCache::new(
(100.0 * config.conduit_cache_capacity_modifier) as usize,
)),
},
state_cache: rooms::state_cache::Service { db },
state_compressor: rooms::state_compressor::Service {
db,