From 5353eea0ba15817cc52faee4a4f532f534eafdf1 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 4 Dec 2020 11:21:22 +0000 Subject: [PATCH] Store in the correct cache --- internal/caching/cache_federationevents.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/caching/cache_federationevents.go b/internal/caching/cache_federationevents.go index 26f81e950..71aa247ab 100644 --- a/internal/caching/cache_federationevents.go +++ b/internal/caching/cache_federationevents.go @@ -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) }