0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-26 09:23:43 +01:00

Store in the correct cache

This commit is contained in:
Neil Alexander 2020-12-04 11:21:22 +00:00
parent b4616a836e
commit 5353eea0ba
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -33,10 +33,10 @@ func (c Caches) GetFederationEvent(eventNID int64) (*gomatrixserverlib.HeaderedE
func (c Caches) StoreFederationEvent(eventNID int64, event *gomatrixserverlib.HeaderedEvent) {
key := fmt.Sprintf("%d", eventNID)
c.ServerKeys.Set(key, event)
c.FederationEvents.Set(key, event)
}
func (c Caches) EvictFederationEvent(eventNID int64) {
key := fmt.Sprintf("%d", eventNID)
c.ServerKeys.Unset(key)
c.FederationEvents.Unset(key)
}