mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Fixed typo
Just a nitpicky typo fix.
This commit is contained in:
parent
cdccc8152c
commit
d65fa7608b
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -345,7 +345,7 @@ func (v *Viper) WatchConfig() {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
watcher.Add(configDir)
|
watcher.Add(configDir)
|
||||||
initWG.Done() // done initalizing the watch in this go routine, so the parent routine can move on...
|
initWG.Done() // done initializing the watch in this go routine, so the parent routine can move on...
|
||||||
eventsWG.Wait() // now, wait for event loop to end in this go-routine...
|
eventsWG.Wait() // now, wait for event loop to end in this go-routine...
|
||||||
}()
|
}()
|
||||||
initWG.Wait() // make sure that the go routine above fully ended before returning
|
initWG.Wait() // make sure that the go routine above fully ended before returning
|
||||||
|
|
Loading…
Reference in a new issue