refactor(appservices): avoid cloning frequently
This commit is contained in:
parent
5c650bb67e
commit
b20483aa13
7 changed files with 44 additions and 40 deletions
|
@ -524,11 +524,11 @@ impl Service {
|
|||
}
|
||||
}
|
||||
|
||||
for appservice in services().appservice.all().await {
|
||||
for appservice in services().appservice.read().await.values() {
|
||||
if services()
|
||||
.rooms
|
||||
.state_cache
|
||||
.appservice_in_room(&pdu.room_id, &appservice)?
|
||||
.appservice_in_room(&pdu.room_id, appservice)?
|
||||
{
|
||||
services()
|
||||
.sending
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue