Skip to content

Commit

Permalink
refactor: drop fsonitfy wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed Nov 29, 2023
1 parent 6db0ab2 commit 464cdab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
2 changes: 1 addition & 1 deletion viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (v *Viper) WatchConfig() {
initWG := sync.WaitGroup{}
initWG.Add(1)
go func() {
watcher, err := newWatcher()
watcher, err := fsnotify.NewWatcher()
if err != nil {
v.logger.Error(fmt.Sprintf("failed to create watcher: %s", err))
os.Exit(1)
Expand Down
11 changes: 0 additions & 11 deletions watch.go

This file was deleted.

31 changes: 0 additions & 31 deletions watch_unsupported.go

This file was deleted.

0 comments on commit 464cdab

Please sign in to comment.