Initialise: let Other state self-size

This commit is contained in:
David Robertson 2023-11-07 13:28:16 +00:00
parent 2052632d0c
commit 9ad93b861e
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -255,8 +255,9 @@ func (a *Accumulator) Initialise(roomID string, state []json.RawMessage) (Initia
}
} else {
currentState = stateMap{
// Typically expect Other to be small, but Memberships may be large (think: Matrix HQ.)
Memberships: make(map[string]int64, len(events)),
Other: make(map[[2]string]int64, len(events)),
Other: make(map[[2]string]int64),
}
}