summaryrefslogtreecommitdiff
path: root/service/reload/service.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-20 08:56:50 +0300
committerValery Piashchynski <[email protected]>2020-02-20 08:56:50 +0300
commitec7975355a8acea632e5c9b7e912b3e9ad6907ca (patch)
treede7347c6b943bc57b71a2a8561c57ac4e753deff /service/reload/service.go
parent54fb0dc2baa8d874f0ff090b49c80361bb6a9557 (diff)
Some fixes
Diffstat (limited to 'service/reload/service.go')
-rw-r--r--service/reload/service.go6
1 files changed, 3 insertions, 3 deletions
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 {