mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-17 02:53:11 -06:00
Remove short circuit for StateKeyNIDs cache
This commit is contained in:
parent
445f6ae93a
commit
fe3f5f269b
|
|
@ -20,9 +20,6 @@ func (c Caches) StoreEventStateKey(eventStateKeyNID types.EventStateKeyNID, even
|
|||
}
|
||||
|
||||
func (c Caches) GetEventStateKeyNID(eventStateKey string) (types.EventStateKeyNID, bool) {
|
||||
if eventStateKey == "" {
|
||||
return 1, true // 1 is the empty statekey as per the default value in the database
|
||||
}
|
||||
return c.RoomServerStateKeyNIDs.Get(eventStateKey)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue