mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-03 06:32:47 +00:00
More flexible caching (#1101)
This commit is contained in:
parent
76ff47c052
commit
e7b19d2c70
16 changed files with 189 additions and 142 deletions
|
@ -29,7 +29,7 @@ func SetupServerKeyAPIComponent(
|
|||
logrus.WithError(err).Panicf("failed to connect to server key database")
|
||||
}
|
||||
|
||||
serverKeyDB, err := cache.NewKeyDatabase(innerDB, base.ImmutableCache)
|
||||
serverKeyDB, err := cache.NewKeyDatabase(innerDB, base.Caches)
|
||||
if err != nil {
|
||||
logrus.WithError(err).Panicf("failed to set up caching wrapper for server key database")
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ func SetupServerKeyAPIComponent(
|
|||
}).Info("Enabled perspective key fetcher")
|
||||
}
|
||||
|
||||
inthttp.AddRoutes(&internalAPI, base.InternalAPIMux, base.ImmutableCache)
|
||||
inthttp.AddRoutes(&internalAPI, base.InternalAPIMux, base.Caches)
|
||||
|
||||
return &internalAPI
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue