Reduce the number of allocations made by localRoomMembers when consuming stream events for push notifications (#2324)

This commit is contained in:
Neil Alexander 2022-04-06 10:43:54 +01:00 committed by GitHub
parent f7109de500
commit 16e2d243fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -184,6 +184,7 @@ func (s *OutputStreamEventConsumer) localRoomMembers(ctx context.Context, roomID
req := &rsapi.QueryMembershipsForRoomRequest{
RoomID: roomID,
JoinedOnly: true,
LocalOnly: true,
}
var res rsapi.QueryMembershipsForRoomResponse