We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89bb816 commit 6b1b71eCopy full SHA for 6b1b71e
pkg/awsutils/awsutils.go
@@ -1741,8 +1741,8 @@ func (cache *EC2InstanceMetadataCache) DescribeAllENIs(ctx context.Context) (Des
1741
start := time.Now()
1742
1743
reqCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
1744
- defer cancel()
1745
ec2Response, err = cache.ec2SVC.DescribeNetworkInterfaces(reqCtx, input)
+ cancel()
1746
prometheusmetrics.Ec2ApiReq.WithLabelValues("DescribeNetworkInterfaces").Inc()
1747
prometheusmetrics.AwsAPILatency.WithLabelValues("DescribeNetworkInterfaces", fmt.Sprint(err != nil), awsReqStatus(err)).Observe(msSince(start))
1748
if err == nil {
0 commit comments