mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-13 23:02:46 +00:00
Store in the correct cache
This commit is contained in:
parent
b4616a836e
commit
5353eea0ba
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue