modification for the print out information

This commit is contained in:
yangzhouhan
2015-06-02 18:33:10 -07:00
parent b6a930aea4
commit 7fa35af646
3 changed files with 4 additions and 4 deletions

View File

@ -129,10 +129,10 @@ func DoStreamingRoundTrip(tc testpb.TestServiceClient, stream testpb.TestService
Payload: pl,
}
if err := stream.Send(req); err != nil {
grpclog.Fatalf("%v.StreamingCall(_) = _, %v: ", tc, err)
grpclog.Fatalf("%v.StreamingCall(_) = _, %v", tc, err)
}
if _, err := stream.Recv(); err != nil {
grpclog.Fatal("%v.StreamingCall(_) = _, %v: ", tc, err)
grpclog.Fatal("%v.StreamingCall(_) = _, %v", tc, err)
}
}

View File

@ -64,7 +64,7 @@ func runStream(b *testing.B, maxConcurrentCalls int) {
tc := testpb.NewTestServiceClient(conn)
stream, err := tc.StreamingCall(context.Background())
if err != nil {
grpclog.Fatalf("%v.StreamingCall(_) = _,%v: ", tc, err)
grpclog.Fatalf("%v.StreamingCall(_) = _, %v", tc, err)
}
// Warm up connection.
for i := 0; i < 10; i++ {

View File

@ -94,7 +94,7 @@ func closeLoopStream() {
s, conn, tc := buildConnection()
stream, err := tc.StreamingCall(context.Background())
if err != nil {
grpclog.Fatalf("%v.StreamingCall(_) = _,%v: ", tc, err)
grpclog.Fatalf("%v.StreamingCall(_) = _, %v", tc, err)
}
for i := 0; i < 100; i++ {
streamCaller(tc, stream)