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)
}