We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在项目 /cmd/cli/cli.go里面有cancel()方法,而且grpc.DialContext也继承了上面创建的上下文,如果提前执行cancel,那grpc的连接不是和上面那个上下文一样就会被cancel取消吗,不知道放在这里的作用是什么,是不是defer cancel()更好
The text was updated successfully, but these errors were encountered:
看一下DialContext的帮助,你就明白了。
Sorry, something went wrong.
No branches or pull requests
在项目 /cmd/cli/cli.go里面有cancel()方法,而且grpc.DialContext也继承了上面创建的上下文,如果提前执行cancel,那grpc的连接不是和上面那个上下文一样就会被cancel取消吗,不知道放在这里的作用是什么,是不是defer cancel()更好
The text was updated successfully, but these errors were encountered: