mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 00:31:24 +01:00
add constructor for spaces service
Also adds a public function to invalidate the cache rather than exposing the entire cache publicly.
This commit is contained in:
parent
f702b6cccd
commit
f771d319b2
4 changed files with 19 additions and 16 deletions
|
|
@ -103,10 +103,8 @@ impl Service {
|
|||
services()
|
||||
.rooms
|
||||
.spaces
|
||||
.roomid_spacechunk_cache
|
||||
.lock()
|
||||
.await
|
||||
.remove(&pdu.room_id);
|
||||
.invalidate_cache(&pdu.room_id)
|
||||
.await;
|
||||
}
|
||||
_ => continue,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue