Skip to content

Commit

Permalink
gateway: fix host bug: 'store of inconsistently typed value into Value'
Browse files Browse the repository at this point in the history
  • Loading branch information
andeya committed Mar 16, 2018
1 parent 3499ed4 commit 57f3fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/logic/hosts/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (h *Hosts) resetGatewayIps(goSort bool) {
etcd.WithSort(etcd.SortByKey, etcd.SortDescend),
)
if err != nil || resp.Kvs == nil || len(resp.Kvs) == 0 {
h.ips.Store([]string{})
h.ips.Store(new(types.GwHosts))
return
}
var (
Expand Down

0 comments on commit 57f3fef

Please sign in to comment.