aboutsummaryrefslogtreecommitdiff
path: root/internal/caching/caches.go
diff options
context:
space:
mode:
authorkegsay <kegan@matrix.org>2023-05-03 10:21:27 +0100
committerGitHub <noreply@github.com>2023-05-03 10:21:27 +0100
commit6284790f986b922877895a3db31ca2723509dbf9 (patch)
treef9426d8be7004aa33ed9dc75ab483af484f96d83 /internal/caching/caches.go
parent9b98e5a10282dbf594f46a41baa21191b2d2b8f6 (diff)
Use PDU in even more places (#3074)
- No longer rely on *Event returning from NewEventFrom... functions Requires https://github.com/matrix-org/gomatrixserverlib/pull/377
Diffstat (limited to 'internal/caching/caches.go')
-rw-r--r--internal/caching/caches.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/caching/caches.go b/internal/caching/caches.go
index f4bbea78..6bae60d5 100644
--- a/internal/caching/caches.go
+++ b/internal/caching/caches.go
@@ -28,7 +28,7 @@ type Caches struct {
ServerKeys Cache[string, gomatrixserverlib.PublicKeyLookupResult] // server name -> server keys
RoomServerRoomNIDs Cache[string, types.RoomNID] // room ID -> room NID
RoomServerRoomIDs Cache[types.RoomNID, string] // room NID -> room ID
- RoomServerEvents Cache[int64, *gomatrixserverlib.Event] // event NID -> event
+ RoomServerEvents Cache[int64, *types.HeaderedEvent] // event NID -> event
RoomServerStateKeys Cache[types.EventStateKeyNID, string] // eventStateKey NID -> event state key
RoomServerStateKeyNIDs Cache[string, types.EventStateKeyNID] // event state key -> eventStateKey NID
RoomServerEventTypeNIDs Cache[string, types.EventTypeNID] // eventType -> eventType NID