Give caches to roomserver storage

This commit is contained in:
Neil Alexander 2020-08-25 11:15:07 +01:00
parent 6b5be72503
commit 38547192d7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -42,7 +42,7 @@ func NewInternalAPI(
) api.RoomserverInternalAPI { ) api.RoomserverInternalAPI {
cfg := &base.Cfg.RoomServer cfg := &base.Cfg.RoomServer
roomserverDB, err := storage.Open(&cfg.Database) roomserverDB, err := storage.Open(&cfg.Database, base.Caches)
if err != nil { if err != nil {
logrus.WithError(err).Panicf("failed to connect to room server db") logrus.WithError(err).Panicf("failed to connect to room server db")
} }