-
Notifications
You must be signed in to change notification settings - Fork 797
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
使用 TimeoutContext 是否更加的优雅 #2315
Comments
感觉可以试试看的 |
如果直接在 或者还有其他比较好的方式吗? |
参考go标准库升级http.Do的方式,可以把context放进结构体里 https://go.dev/blog/context-and-structs |
CheckHealth 方法 这个方法是无参的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/mosn/mosn/blob/42c4dc0563480a508822b1e106dac789732d5eab/pkg/upstream/healthcheck/session_checker.go#LL162C22-L162C33
CheckHealth 方法
The text was updated successfully, but these errors were encountered: