summaryrefslogtreecommitdiff
path: root/service/watcher/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/watcher/config.go')
-rw-r--r--service/watcher/config.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/service/watcher/config.go b/service/watcher/config.go
index dcd31777..74be517a 100644
--- a/service/watcher/config.go
+++ b/service/watcher/config.go
@@ -1,7 +1,6 @@
package watcher
import (
- "fmt"
"github.com/spiral/roadrunner"
"github.com/spiral/roadrunner/service"
"time"
@@ -27,12 +26,6 @@ func (c *Config) Hydrate(cfg service.Config) error {
c.Interval = time.Second * time.Duration(c.Interval.Nanoseconds())
}
- for name, cfg := range c.Services {
- if err := cfg.Normalize(); err != nil {
- return fmt.Errorf("invalid watcher `%s`: %s", name, err.Error())
- }
- }
-
return nil
}
@@ -48,7 +41,7 @@ func (c *Config) Watchers(l listener) (watchers map[string]roadrunner.Watcher) {
watchers = make(map[string]roadrunner.Watcher)
for name, cfg := range c.Services {
- watchers[name] = &watcher{lsn: l, interval: c.Interval, cfg: cfg}
+ watchers[name] = &watcher{lsn: l, tick: c.Interval, cfg: cfg}
}
return watchers