mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Initialise: let Other
state self-size
This commit is contained in:
parent
2052632d0c
commit
9ad93b861e
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user