mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Noticed a couple ot typos
This commit is contained in:
parent
493be7d534
commit
3041a43deb
1 changed files with 2 additions and 2 deletions
|
@ -275,12 +275,12 @@ err := runtime_viper.ReadRemoteConfig()
|
||||||
// unmarshal config
|
// unmarshal config
|
||||||
runtime_viper.Unmarshal(&runtime_conf)
|
runtime_viper.Unmarshal(&runtime_conf)
|
||||||
|
|
||||||
// open a goroutine to wath remote changes forever
|
// open a goroutine to watch remote changes forever
|
||||||
go func(){
|
go func(){
|
||||||
for {
|
for {
|
||||||
time.Sleep(time.Second * 5) // delay after each request
|
time.Sleep(time.Second * 5) // delay after each request
|
||||||
|
|
||||||
// currenlty, only tested with etcd support
|
// currently, only tested with etcd support
|
||||||
err := runtime_viper.WatchRemoteConfig()
|
err := runtime_viper.WatchRemoteConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("unable to read remote config: %v", err)
|
log.Errorf("unable to read remote config: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue