File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1740,9 +1740,9 @@ func (cache *EC2InstanceMetadataCache) DescribeAllENIs(ctx context.Context) (Des
17401740 input := & ec2.DescribeNetworkInterfacesInput {NetworkInterfaceIds : eniIDs }
17411741 start := time .Now ()
17421742
1743- reqCtx , cancel := context .WithTimeout (ctx , 5 * time .Second )
1743+ reqCtx , cancel := context .WithTimeout (ctx , 10 * time .Second )
1744+ defer cancel ()
17441745 ec2Response , err = cache .ec2SVC .DescribeNetworkInterfaces (reqCtx , input )
1745- cancel ()
17461746 prometheusmetrics .Ec2ApiReq .WithLabelValues ("DescribeNetworkInterfaces" ).Inc ()
17471747 prometheusmetrics .AwsAPILatency .WithLabelValues ("DescribeNetworkInterfaces" , fmt .Sprint (err != nil ), awsReqStatus (err )).Observe (msSince (start ))
17481748 if err == nil {
You can’t perform that action at this time.
0 commit comments