* comment fix

* redundancy

* typo nill -> nil

* remove extra newline from log
This commit is contained in:
mmetc 2024-06-13 11:07:44 +02:00 committed by GitHub
parent 4e09ae2182
commit a529e66cd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 12 deletions

View file

@ -22,7 +22,7 @@ func (c *Client) StartFlushScheduler(config *csconfig.FlushDBCfg) (*gocron.Sched
maxAge := ""
if config.MaxItems != nil && *config.MaxItems <= 0 {
return nil, errors.New("max_items can't be zero or negative number")
return nil, errors.New("max_items can't be zero or negative")
}
if config.MaxItems != nil {