mirror of https://github.com/grpc/grpc-go.git
Minor fixes
This commit is contained in:
parent
0d31c857ae
commit
67497aad6c
|
|
@ -195,6 +195,10 @@ func DoByteBufStreamingRoundTrip(stream testpb.BenchmarkService_StreamingCallCli
|
|||
}
|
||||
var in []byte
|
||||
if err := stream.(grpc.ClientStream).RecvMsg(&in); err != nil {
|
||||
// EOF should be a valid error here.
|
||||
if err == io.EOF {
|
||||
return nil
|
||||
}
|
||||
return grpc.Errorf(grpc.Code(err), "StreamingCall(_).(ClientStream).RecvMsg: %v", grpc.ErrorDesc(err))
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ func (bc *benchmarkClient) getStats() *testpb.ClientStats {
|
|||
}
|
||||
|
||||
// reset clears the contents for histogram and set lastResetTime to Now().
|
||||
// It is often called to get ready for benchmark runs.
|
||||
// It is called to get ready for benchmark runs.
|
||||
func (bc *benchmarkClient) reset() {
|
||||
bc.mu.Lock()
|
||||
defer bc.mu.Unlock()
|
||||
|
|
|
|||
Loading…
Reference in New Issue