diff options
author | Valery Piashchynski <[email protected]> | 2020-02-18 16:29:56 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-18 16:29:56 +0300 |
commit | 24ec01aa7f0225098e4c750a8c51843cc41bbf8b (patch) | |
tree | 5ff6315d1479ebc90a7bd1da96103b5d1a4ae940 /service/reload/service.go | |
parent | 6fb73b5fcca8d40f5fb3789875480f1e8151db6a (diff) |
Finish with Adding single path w/o recursion
Diffstat (limited to 'service/reload/service.go')
-rw-r--r-- | service/reload/service.go | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/service/reload/service.go b/service/reload/service.go index db10b6f4..ee2aed99 100644 --- a/service/reload/service.go +++ b/service/reload/service.go @@ -1,6 +1,9 @@ package reload -import "github.com/spiral/roadrunner/service" +import ( + "github.com/spiral/roadrunner/service" + "os" +) // ID contains default service name. const ID = "reload" @@ -25,12 +28,16 @@ func (s *Service) Init(cfg *Config, c service.Container) (bool, error) { } func (s *Service) Serve() error { - w, err := NewWatcher(s.reloadConfig, SetMaxFileEvents(100)) + w, err := NewWatcher(SetMaxFileEvents(100)) if err != nil { return err } - _ = w + name , _ := os.Getwd() + + w.AddSingle(name) + + println("test") return nil } |