diff options
author | Wolfy-J <[email protected]> | 2018-05-29 13:03:34 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-05-29 13:03:34 +0300 |
commit | b8bc792b263a3891e125757a35cc563bb85f1a0b (patch) | |
tree | f7a9e6f2568220491a26f6544e4acf0ed62012bb /config.go | |
parent | 50f820833eeef8518b3b978b33c6f20391225162 (diff) |
nested observers
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,18 +25,18 @@ type Config struct { DestroyTimeout time.Duration } -// Valid returns error if config not valid +// Valid returns error if cfg not valid func (cfg *Config) Valid() error { if cfg.NumWorkers == 0 { - return fmt.Errorf("config.NumWorkers must be set") + return fmt.Errorf("cfg.NumWorkers must be set") } if cfg.AllocateTimeout == 0 { - return fmt.Errorf("config.AllocateTimeout must be set") + return fmt.Errorf("cfg.AllocateTimeout must be set") } if cfg.DestroyTimeout == 0 { - return fmt.Errorf("config.DestroyTimeout must be set") + return fmt.Errorf("cfg.DestroyTimeout must be set") } return nil |