Commit 148e923f authored by Jack Francis's avatar Jack Francis

az.getVirtualMachine already rate-limited

we don’t need to rate limit the calls _to_ it
parent ac931aa1
...@@ -31,7 +31,6 @@ func (az *Cloud) GetVirtualMachineWithRetry(name types.NodeName) (compute.Virtua ...@@ -31,7 +31,6 @@ func (az *Cloud) GetVirtualMachineWithRetry(name types.NodeName) (compute.Virtua
var machine compute.VirtualMachine var machine compute.VirtualMachine
var exists bool var exists bool
err := wait.ExponentialBackoff(az.resourceRequestBackoff, func() (bool, error) { err := wait.ExponentialBackoff(az.resourceRequestBackoff, func() (bool, error) {
az.operationPollRateLimiter.Accept()
var retryErr error var retryErr error
machine, exists, retryErr = az.getVirtualMachine(name) machine, exists, retryErr = az.getVirtualMachine(name)
if retryErr != nil { if retryErr != nil {
......
...@@ -60,7 +60,6 @@ func (az *Cloud) InstanceID(name types.NodeName) (string, error) { ...@@ -60,7 +60,6 @@ func (az *Cloud) InstanceID(name types.NodeName) (string, error) {
var machine compute.VirtualMachine var machine compute.VirtualMachine
var exists bool var exists bool
var err error var err error
az.operationPollRateLimiter.Accept()
machine, exists, err = az.getVirtualMachine(name) machine, exists, err = az.getVirtualMachine(name)
if err != nil { if err != nil {
if az.CloudProviderBackoff { if az.CloudProviderBackoff {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment