From dfef39c64132192d13e2315364a74f1b0244791e Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Fri, 15 Jun 2018 15:54:14 +0300 Subject: readme, samples, golint, build scripts --- config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index 02008181..929ca806 100644 --- a/config.go +++ b/config.go @@ -18,14 +18,14 @@ type Config struct { // AllocateTimeout defines for how long pool will be waiting for a worker to // be freed to handle the task. - AllocateTimeout time.Duration //todo: to milleseconds? + AllocateTimeout time.Duration // DestroyTimeout defines for how long pool should be waiting for worker to // properly stop, if timeout reached worker will be killed. - DestroyTimeout time.Duration //todo: to milleseconds? + DestroyTimeout time.Duration } -// Reconfigure returns error if cfg not valid +// Valid returns error if config not valid. func (cfg *Config) Valid() error { if cfg.NumWorkers == 0 { return fmt.Errorf("pool.NumWorkers must be set") -- cgit v1.2.3