Fix excessive delay before clearing stale room data

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-12-13 11:17:20 -08:00
parent 5218a2f966
commit 45bfcfc3b8
4 changed files with 16 additions and 10 deletions

View file

@ -131,7 +131,7 @@ impl Database {
.await
}
pub async fn outdated_room_ids(&self) -> Result<Vec<RoomId>> {
pub async fn stale_room_ids(&self) -> Result<Vec<RoomId>> {
self.transaction(|tx| async move {
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]
enum QueryAs {