summaryrefslogtreecommitdiff
path: root/plugins/jobs/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-23 17:41:51 +0300
committerValery Piashchynski <[email protected]>2021-06-23 17:41:51 +0300
commit521aeb823bc8fa1f0a91b540cbbac96328185f51 (patch)
tree9ec5f3fba0a4aa0469dd106040142c5e6b8cf144 /plugins/jobs/config.go
parent7fc09959619e9e400ecafcffcd63e38812f397a6 (diff)
- Add PQ (priority_queue) mock
- Add binary heap mock - Connect first sub-plugin (ephemeral) with root jobs plugin Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/config.go')
-rw-r--r--plugins/jobs/config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jobs/config.go b/plugins/jobs/config.go
index 74e4a811..bb042ec9 100644
--- a/plugins/jobs/config.go
+++ b/plugins/jobs/config.go
@@ -36,10 +36,12 @@ func (c *Config) InitDefaults() error {
return errors.E(op, err)
}
- if c.poolCfg != nil {
- c.poolCfg.InitDefaults()
+ if c.poolCfg == nil {
+ c.poolCfg = &poolImpl.Config{}
}
+ c.poolCfg.InitDefaults()
+
return nil
}