summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-05-29 13:03:34 +0300
committerWolfy-J <[email protected]>2018-05-29 13:03:34 +0300
commitb8bc792b263a3891e125757a35cc563bb85f1a0b (patch)
treef7a9e6f2568220491a26f6544e4acf0ed62012bb /config.go
parent50f820833eeef8518b3b978b33c6f20391225162 (diff)
nested observers
Diffstat (limited to 'config.go')
-rw-r--r--config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.go b/config.go
index e48cefc2..f2d8b609 100644
--- a/config.go
+++ b/config.go
@@ -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