Address review comments
This commit is contained in:
@ -173,6 +173,10 @@ func DoStreamingRoundTrip(stream testpb.BenchmarkService_StreamingCallClient, re
|
||||
return grpc.Errorf(grpc.Code(err), "StreamingCall(_).Send: %v", grpc.ErrorDesc(err))
|
||||
}
|
||||
if _, err := stream.Recv(); err != nil {
|
||||
// EOF should be a valid error here.
|
||||
if err == io.EOF {
|
||||
return nil
|
||||
}
|
||||
return grpc.Errorf(grpc.Code(err), "StreamingCall(_).Recv: %v", grpc.ErrorDesc(err))
|
||||
}
|
||||
return nil
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright 2015, Google Inc.
|
||||
// Copyright 2016, Google Inc.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
// Copyright 2015-2016, Google Inc.
|
||||
// Copyright 2016, Google Inc.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright 2015, Google Inc.
|
||||
// Copyright 2016, Google Inc.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright 2015, Google Inc.
|
||||
// Copyright 2016, Google Inc.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright 2015, Google Inc.
|
||||
// Copyright 2016, Google Inc.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
@ -145,6 +145,7 @@ func NewHistogram(opts HistogramOptions) *Histogram {
|
||||
return &h
|
||||
}
|
||||
|
||||
// Clear resets all the content of histogram.
|
||||
func (h *Histogram) Clear() {
|
||||
h.count = newCounter()
|
||||
h.sum = newCounter()
|
||||
|
Reference in New Issue
Block a user