From ec7975355a8acea632e5c9b7e912b3e9ad6907ca Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 20 Feb 2020 08:56:50 +0300 Subject: Some fixes --- service/reload/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'service/reload/service.go') diff --git a/service/reload/service.go b/service/reload/service.go index f50d6626..5a400159 100644 --- a/service/reload/service.go +++ b/service/reload/service.go @@ -31,7 +31,7 @@ func (s *Service) Serve() error { var err error s.watcher, err = NewWatcher([]WatcherConfig{WatcherConfig{ - serviceName: "test", + serviceName: "test_service_name", recursive: false, directories: []string{"/service"}, filterHooks: func(filename, pattern string) error { @@ -49,14 +49,14 @@ func (s *Service) Serve() error { - s.watcher.AddSingle("test", "/service") + s.watcher.AddSingle("test_service_name", "/service") go func() { for { select { case e := <-s.watcher.Event: - println(e.Name()) + println(e.Type) } } //for e = range w.Event { -- cgit v1.2.3