fixed panic and quota
This commit is contained in:
parent
a6b9602821
commit
37a6b0ae5f
3 changed files with 41 additions and 25 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue