Skip to content

Commit

Permalink
fix(dynamic_conf) fix watch
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Dec 19, 2024
1 parent 07bad4b commit d918f09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dynamic_conf/fsnotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ func (lf *FsNotify) AddListener(listener func()) error {
if !ok {
return
}
if event.Has(fsnotify.Write) {
listener()
}
logx.Infof("%s %s", event.Name, event.Op)
listener()
case err, ok := <-lf.Watcher.Errors:
if !ok {
return
Expand Down

0 comments on commit d918f09

Please sign in to comment.