fixed panic and quota

This commit is contained in:
ston1th 2022-10-08 10:34:16 +02:00
commit 37a6b0ae5f
3 changed files with 41 additions and 25 deletions

View file

@ -74,7 +74,7 @@ func Validate(cfg *Config) error {
if cfg.Server.HTTP.Addr == "" {
cfg.Server.HTTP.Addr = defListenHTTP
}
c := cfg.Cache
c := &cfg.Cache
if c.Metadata == "" {
return errors.New("cache.metadata is empty")
}