client improve a comment in updateNetworks
This commit is contained in:
parent
c32cce51f0
commit
f6bc45dd23
|
@ -1299,10 +1299,10 @@ func updateNetworks(ns structs.Networks, up structs.Networks, c *config.Config)
|
|||
upd = append(upd, n)
|
||||
}
|
||||
}
|
||||
// If updates, use them. Otherwise, ns contains the configured interfaces
|
||||
if len(upd) > 0 {
|
||||
ns = upd
|
||||
}
|
||||
// Otherwise, ns has the old data
|
||||
}
|
||||
|
||||
// ns is set, apply the config NetworkSpeed to all
|
||||
|
|
Loading…
Reference in New Issue