Skip to content
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

transport/http: delay pass context.Context #1684

Merged
merged 5 commits into from Dec 13, 2021

Conversation

Cluas
Copy link
Contributor

@Cluas Cluas commented Dec 12, 2021

Description (what this PR does / why we need it):

The current http request ctx does not carry the user construct, so some timeouts and so on will fail.

Which issue(s) this PR fixes (resolves / be part of):

fixes #
#1683

Other special notes for reviewer:

@Cluas Cluas requested a review from longXboy December 12, 2021 07:21
@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2021

Codecov Report

Merging #1684 (533c58a) into main (5df28f4) will decrease coverage by 0.00%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1684      +/-   ##
==========================================
- Coverage   81.16%   81.16%   -0.01%     
==========================================
  Files          78       78              
  Lines        3420     3419       -1     
==========================================
- Hits         2776     2775       -1     
  Misses        442      442              
  Partials      202      202              
Impacted Files Coverage Δ
transport/http/client.go 78.88% <83.33%> (-0.12%) ⬇️

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 5df28f4...533c58a. Read the comment docs.

@Cluas Cluas changed the title transport/http: fix http request do not with ctx from user transport/http: support context.WithTimeout Dec 12, 2021
@Cluas Cluas requested a review from tonybase December 12, 2021 07:43
transport/http/client.go Outdated Show resolved Hide resolved
@Cluas Cluas changed the title transport/http: support context.WithTimeout transport/http: delay pass context.Context Dec 12, 2021
tonybase
tonybase previously approved these changes Dec 12, 2021
@tonybase tonybase merged commit e1e8184 into go-kratos:main Dec 13, 2021
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.

None yet

5 participants