mirror of
https://github.com/spf13/viper
synced 2025-05-07 20:57:18 +00:00
Merge 104f9d0771
into c898f59d33
This commit is contained in:
commit
07db3cc5ce
1 changed files with 3 additions and 1 deletions
4
viper.go
4
viper.go
|
@ -1936,7 +1936,9 @@ func (v *Viper) watchKeyValueConfigOnChannel() error {
|
|||
for {
|
||||
b := <-rc
|
||||
reader := bytes.NewReader(b.Value)
|
||||
v.unmarshalReader(reader, v.kvstore)
|
||||
kvstore := make(map[string]interface{})
|
||||
v.unmarshalReader(reader, kvstore)
|
||||
v.kvstore = kvstore
|
||||
}
|
||||
}(respc)
|
||||
return nil
|
||||
|
|
Loading…
Add table
Reference in a new issue