diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-07-13 10:13:34 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-07-13 10:13:34 +0100 |
commit | a1f9b02edfd56809eaedd04fd233b1828085e190 (patch) | |
tree | dc48e75fcc7244230c5004c1df69d5be0a571329 /internal/caching/impl_ristretto.go | |
parent | 9cd8e9d4b97c6cff66665f57065a5bb8b7144045 (diff) |
Pointerise `types.RoomInfo` in the cache so we can update it in-place in the latest events updater
Diffstat (limited to 'internal/caching/impl_ristretto.go')
-rw-r--r-- | internal/caching/impl_ristretto.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/caching/impl_ristretto.go b/internal/caching/impl_ristretto.go index 6d625b55..677218b5 100644 --- a/internal/caching/impl_ristretto.go +++ b/internal/caching/impl_ristretto.go @@ -100,7 +100,7 @@ func NewRistrettoCache(maxCost config.DataUnit, maxAge time.Duration, enableProm MaxAge: maxAge, }, }, - RoomInfos: &RistrettoCachePartition[string, types.RoomInfo]{ // room ID -> room info + RoomInfos: &RistrettoCachePartition[string, *types.RoomInfo]{ // room ID -> room info cache: cache, Prefix: roomInfosCache, Mutable: true, |