mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-13 14:52:47 +00:00
Default caches configuration
This commit is contained in:
parent
4631f53241
commit
464ecd1e64
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,7 @@ func (c *Global) Defaults() {
|
|||
|
||||
c.Kafka.Defaults()
|
||||
c.Metrics.Defaults()
|
||||
c.Caches.Defaults()
|
||||
}
|
||||
|
||||
func (c *Global) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
||||
|
@ -70,6 +71,7 @@ func (c *Global) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
|||
|
||||
c.Kafka.Verify(configErrs, isMonolith)
|
||||
c.Metrics.Verify(configErrs, isMonolith)
|
||||
c.Caches.Verify(configErrs, isMonolith)
|
||||
}
|
||||
|
||||
type OldVerifyKeys struct {
|
||||
|
@ -153,4 +155,5 @@ func (c *Caches) Defaults() {
|
|||
}
|
||||
|
||||
func (c *Caches) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
||||
checkPositive(configErrs, "global.caches.federationsender_cache_size", int64(c.FederationSenderEventCacheSize))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue