-
Notifications
You must be signed in to change notification settings - Fork 164
Conversation
This fixes: server_test.go:300:14:warning: grpc.Errorf is deprecated: use status.Errorf instead. (SA1019) (megacheck) server_test.go:305:10:warning: grpc.Errorf is deprecated: use status.Errorf instead. (SA1019) (megacheck)
This fixes: util.go:40:5: should omit comparison to bool constant, can be simplified to !mInfo.IsClientStream (S1002) util.go:40:38: should omit comparison to bool constant, can be simplified to !mInfo.IsServerStream (S1002) util.go:43:5: should omit comparison to bool constant, can be simplified to mInfo.IsClientStream (S1002) util.go:43:37: should omit comparison to bool constant, can be simplified to !mInfo.IsServerStream (S1002) util.go:46:5: should omit comparison to bool constant, can be simplified to !mInfo.IsClientStream (S1002) util.go:46:38: should omit comparison to bool constant, can be simplified to mInfo.IsServerStream (S1002)
This fixes: client_metrics.go:115:19: grpc.Code is deprecated: use status.FromError and Code method instead. (SA1019) client_metrics.go:126:20: grpc.Code is deprecated: use status.FromError and Code method instead. (SA1019) client_metrics.go:163:21: grpc.Code is deprecated: use status.FromError and Code method instead. (SA1019) client_test.go:164:49: grpc.Code is deprecated: use status.FromError and Code method instead. (SA1019) client_test.go:192:49: grpc.Code is deprecated: use status.FromError and Code method instead. (SA1019) server_metrics.go:107:19: grpc.Code is deprecated: use status.FromError and Code method instead. (SA1019) server_metrics.go:120:19: grpc.Code is deprecated: use status.FromError and Code method instead. (SA1019)
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
Please see #40 regarding the Travis-CI failure. |
@knweiss you also need to sign the CLA for us to be able to merge these changes. Also even if flaky I'd prefer to see the tests pass. |
@brancz done |
CLAs look good, thanks! |
Codecov Report
@@ Coverage Diff @@
## master #45 +/- ##
==========================================
+ Coverage 77.4% 77.45% +0.04%
==========================================
Files 8 8
Lines 270 275 +5
==========================================
+ Hits 209 213 +4
- Misses 52 53 +1
Partials 9 9
Continue to review full report at Codecov.
|
lgtm |
@@ -37,13 +37,13 @@ func splitMethodName(fullMethodName string) (string, string) { | |||
} | |||
|
|||
func typeFromMethodInfo(mInfo *grpc.MethodInfo) grpcType { | |||
if mInfo.IsClientStream == false && mInfo.IsServerStream == false { | |||
if !mInfo.IsClientStream && !mInfo.IsServerStream { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol (:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Please review (esp the
grpc.Code()
commit).See the individual commit messages for details.
I've only tested with
go test
so far.