fixup! perf(knock): add database cache
iterate over all users in migration
This commit is contained in:
parent
960259720b
commit
062f138cfe
1 changed files with 1 additions and 12 deletions
|
@ -949,18 +949,7 @@ impl KeyValueDatabase {
|
|||
}
|
||||
|
||||
if services().globals.database_version()? < 14 {
|
||||
for username in services().users.list_local_users()? {
|
||||
let user = match UserId::parse_with_server_name(
|
||||
username.clone(),
|
||||
services().globals.server_name(),
|
||||
) {
|
||||
Ok(u) => u,
|
||||
Err(e) => {
|
||||
warn!("Invalid username {username}: {e}");
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
for user in services().users.iter().filter_map(Result::ok) {
|
||||
for room in
|
||||
services()
|
||||
.rooms
|
||||
|
|
Loading…
Add table
Reference in a new issue