client improve a comment in updateNetworks

This commit is contained in:
Lang Martin
2019-05-10 11:25:04 -04:00
parent 22568599e8
commit c7071a12e3

View File

@@ -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