diff options
author | Wolfy-J <[email protected]> | 2018-06-10 17:53:13 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-10 17:53:13 +0300 |
commit | 4fd4c7a1e8194287249fa59252afc2cd260d5643 (patch) | |
tree | 7f2f3872ff13ff063acca14d4294b4d299c3dea2 /config.go | |
parent | 094a4c211022b9446ef988c74c546ad6efb09722 (diff) |
rr is working now
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,15 +28,15 @@ type Config struct { // Reconfigure returns error if cfg not valid func (cfg *Config) Valid() error { if cfg.NumWorkers == 0 { - return fmt.Errorf("cfg.NumWorkers must be set") + return fmt.Errorf("pool.NumWorkers must be set") } if cfg.AllocateTimeout == 0 { - return fmt.Errorf("cfg.AllocateTimeout must be set") + return fmt.Errorf("pool.AllocateTimeout must be set") } if cfg.DestroyTimeout == 0 { - return fmt.Errorf("cfg.DestroyTimeout must be set") + return fmt.Errorf("pool.DestroyTimeout must be set") } return nil |