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

请问有人知道书上2.9.5统一超时控制是怎么验证的吗? #30

Open
moo611 opened this issue Dec 25, 2021 · 1 comment
Open

Comments

@moo611
Copy link

moo611 commented Dec 25, 2021

我是在get tags里面返回response之前,加上了一个time.Sleep(10 * time.Second) ,然后在yaml里面设置的时间是1s,但是没有生效啊

@moo611
Copy link
Author

moo611 commented Dec 25, 2021

书上125页给的代码:
_,err := ctxhttp.Get(c.Request.Context(),http.DefaultClient,"https://www.google.com/")
这里的ctxhttp又是哪来的呢???

@moo611 moo611 changed the title 有人知道书上2.9.5统一超时控制是怎么验证的吗?看书也没看明白 请问有人知道书上2.9.5统一超时控制是怎么验证的吗? Dec 25, 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

No branches or pull requests

1 participant