Changes another usage of the BandwidthShaper to Shaper

This commit is contained in:
viegasdom 2019-04-12 17:24:57 +01:00
parent 80578d5bf1
commit 9d3d7a7b51

View File

@ -597,7 +597,7 @@ func (plugin *kubenetNetworkPlugin) delContainerFromNetwork(config *libcni.Netwo
// shaper retrieves the bandwidth shaper and, if it hasn't been fetched before,
// initializes it and ensures the bridge is appropriately configured
// This function should only be called while holding the `plugin.mu` lock
func (plugin *kubenetNetworkPlugin) shaper() bandwidth.BandwidthShaper {
func (plugin *kubenetNetworkPlugin) shaper() bandwidth.Shaper {
if plugin.bandwidthShaper == nil {
plugin.bandwidthShaper = bandwidth.NewTCShaper(BridgeName)
plugin.bandwidthShaper.ReconcileInterface()