mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-21 04:53:14 -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) {
|
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)
|
return c.RoomServerStateKeyNIDs.Get(eventStateKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue