Skip to content

Add 'read_timeout' option in client.py #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 17, 2022

Conversation

tjoubert
Copy link
Contributor

@tjoubert tjoubert commented Aug 5, 2022

  • Added request_timeout property to ArangoClient to overwrite DefaultHTTPClient.REQUEST_TIMEOUT
  • Added request_timeout constructor parameter in ArangoClient to initialize request_timeout property. The default value for this parameter is -1. Any other value supplied, including None will overwrite DefaultHTTPClient.REQUEST_TIMEOUT
  • Added # type: ignore to lines 141 and 146 because they failed mypy. However, they work perfectly well when tested. Any suggestions here is very much appreciated.

@tjoubert tjoubert requested review from joowani and aMahanna August 5, 2022 16:59
@codecov-commenter
Copy link

codecov-commenter commented Aug 15, 2022

Codecov Report

Merging #213 (db551db) into main (76ca077) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #213      +/-   ##
==========================================
- Coverage   99.86%   99.86%   -0.01%     
==========================================
  Files          26       26              
  Lines        3735     3731       -4     
==========================================
- Hits         3730     3726       -4     
  Misses          5        5              
Impacted Files Coverage Δ
arango/client.py 100.00% <100.00%> (ø)
arango/collection.py 99.75% <0.00%> (-0.01%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@joowani joowani left a comment

Choose a reason for hiding this comment

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

lgtm

@joowani joowani merged commit 6da57e0 into main Aug 17, 2022
@joowani joowani deleted the DE-268-add-read_timeout-to-http-client branch August 17, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants