mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-07 06:03:09 -06:00
Make federation caches mutable
This commit is contained in:
parent
da107c78da
commit
345a01ce73
|
|
@ -52,10 +52,12 @@ func NewRistrettoCache(maxCost CacheSize, enablePrometheus bool) (*Caches, error
|
|||
FederationPDUs: &RistrettoCachePartition[int64, *gomatrixserverlib.HeaderedEvent]{
|
||||
cache: cache,
|
||||
Name: "federation_events_pdu",
|
||||
Mutable: true,
|
||||
},
|
||||
FederationEDUs: &RistrettoCachePartition[int64, *gomatrixserverlib.EDU]{
|
||||
cache: cache,
|
||||
Name: "federation_events_edu",
|
||||
Mutable: true,
|
||||
},
|
||||
SpaceSummaryRooms: &RistrettoCachePartition[string, gomatrixserverlib.MSC2946SpacesResponse]{
|
||||
cache: cache,
|
||||
|
|
|
|||
Loading…
Reference in a new issue