diff options
author | Valery Piashchynski <[email protected]> | 2021-06-23 15:02:16 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-23 15:02:16 +0300 |
commit | 7fc09959619e9e400ecafcffcd63e38812f397a6 (patch) | |
tree | e6629f40cda53988facfb455ed460dbd05bbdc29 /plugins/jobs/config.go | |
parent | b0e7ac1aa40e9dbb688f88ac21b10a321a02c252 (diff) |
- Swithc from value to pointer to the pool configuration. Interface
value changed.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/config.go')
-rw-r--r-- | plugins/jobs/config.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/jobs/config.go b/plugins/jobs/config.go index 1e49b959..74e4a811 100644 --- a/plugins/jobs/config.go +++ b/plugins/jobs/config.go @@ -12,7 +12,7 @@ import ( type Config struct { // Workers configures roadrunner server and worker busy. // Workers *roadrunner.ServerConfig - poolCfg poolImpl.Config + poolCfg *poolImpl.Config // Dispatch defines where and how to match jobs. Dispatch map[string]*structs.Options @@ -35,6 +35,11 @@ func (c *Config) InitDefaults() error { if err != nil { return errors.E(op, err) } + + if c.poolCfg != nil { + c.poolCfg.InitDefaults() + } + return nil } |