Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

add timeout for AWS MetadataAccessor#318

Merged
mayurkale22 merged 2 commits intocensus-instrumentation:masterfrom
mayurkale22:add_timeout
Jan 31, 2019
Merged

add timeout for AWS MetadataAccessor#318
mayurkale22 merged 2 commits intocensus-instrumentation:masterfrom
mayurkale22:add_timeout

Conversation

@mayurkale22
Copy link
Copy Markdown
Member

No description provided.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #318 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #318      +/-   ##
==========================================
- Coverage   94.93%   94.92%   -0.01%     
==========================================
  Files         118      118              
  Lines        8101     8106       +5     
  Branches      723      723              
==========================================
+ Hits         7691     7695       +4     
- Misses        410      411       +1
Impacted Files Coverage Δ
src/resource-utils.ts 92.3% <0%> (-0.63%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99c04ee...1b40f56. Read the comment docs.

});
req.on('error', (err) => reject(err));
req.on('error', (err) => {
clearTimeout(timeoutId);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming you don't need to clear the timeout on success as well since the promise would already be resolved, but just wanted to state that out loud in case it's wrong.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Must have somehow missed that.

@mayurkale22 mayurkale22 merged commit 54d46ea into census-instrumentation:master Jan 31, 2019
@mayurkale22 mayurkale22 deleted the add_timeout branch January 31, 2019 01:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants