aboutsummaryrefslogtreecommitdiff
path: root/roomserver/internal/api.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-08-25 12:32:29 +0100
committerGitHub <noreply@github.com>2020-08-25 12:32:29 +0100
commitc8b873abc8cb20227774c648b7a774214c8f3752 (patch)
tree78e7cf34b4fc8625cc6458fead0fd2adee5114a2 /roomserver/internal/api.go
parent05242096a17ab432878f777c64240c2a3d5b367c (diff)
Roomserver NID caches (#1335)
* Initial work on roomserver NID caches * Give caches to roomserver storage * Populate caches * Fix bugs * Fix WASM build * Don't hit cache twice in RoomNIDExcludingStubs * Store reverse room ID-room NID mapping, consult caches when assigning NIDs
Diffstat (limited to 'roomserver/internal/api.go')
-rw-r--r--roomserver/internal/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/internal/api.go b/roomserver/internal/api.go
index efe9bdcd..f94c72f0 100644
--- a/roomserver/internal/api.go
+++ b/roomserver/internal/api.go
@@ -16,7 +16,7 @@ type RoomserverInternalAPI struct {
DB storage.Database
Cfg *config.RoomServer
Producer sarama.SyncProducer
- Cache caching.RoomVersionCache
+ Cache caching.RoomServerCaches
ServerName gomatrixserverlib.ServerName
KeyRing gomatrixserverlib.JSONVerifier
FedClient *gomatrixserverlib.FederationClient