forked from mirror/viper
Compare commits
1 Commits
master
...
bugfix/wat
Author | SHA1 | Date |
---|---|---|
Andrew Stuart | a8d2f21f14 |
2
viper.go
2
viper.go
|
@ -306,9 +306,11 @@ func (v *Viper) WatchConfig() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("error:", err)
|
log.Println("error:", err)
|
||||||
}
|
}
|
||||||
|
if v.onConfigChange != nil {
|
||||||
v.onConfigChange(event)
|
v.onConfigChange(event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
case err := <-watcher.Errors:
|
case err := <-watcher.Errors:
|
||||||
log.Println("error:", err)
|
log.Println("error:", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue