Skip to content

Commit

Permalink
Fix config file watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Sep 6, 2023
1 parent bd5c472 commit eef874b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd-rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,7 @@ func onFileChanged(ctx context.Context, dirs []string, callback func(fsnotify.Ev
if !ok {
return
}
klog.Infof("event: %s", event)
if event.Op&fsnotify.Write == fsnotify.Write {
callback(event)
}
callback(event)
case err, ok := <-watcher.Errors:
if !ok {
return
Expand Down

0 comments on commit eef874b

Please sign in to comment.