diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-08-25 12:32:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 12:32:29 +0100 |
commit | c8b873abc8cb20227774c648b7a774214c8f3752 (patch) | |
tree | 78e7cf34b4fc8625cc6458fead0fd2adee5114a2 /roomserver/roomserver.go | |
parent | 05242096a17ab432878f777c64240c2a3d5b367c (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/roomserver.go')
-rw-r--r-- | roomserver/roomserver.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/roomserver.go b/roomserver/roomserver.go index 1f331a8f..21af5f32 100644 --- a/roomserver/roomserver.go +++ b/roomserver/roomserver.go @@ -42,7 +42,7 @@ func NewInternalAPI( ) api.RoomserverInternalAPI { cfg := &base.Cfg.RoomServer - roomserverDB, err := storage.Open(&cfg.Database) + roomserverDB, err := storage.Open(&cfg.Database, base.Caches) if err != nil { logrus.WithError(err).Panicf("failed to connect to room server db") } |