summaryrefslogtreecommitdiff
path: root/service/reload/service.go
diff options
context:
space:
mode:
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 {