Update comments in client

This commit is contained in:
Asim 2015-12-19 16:54:47 +00:00
parent 310a84d059
commit 24d56f0035

View File

@ -100,7 +100,7 @@ func pingPong(i int) {
}
for j := 0; j < i; j++ {
if err := stream.Send(&example.Ping{Stroke: int64(j)}); err != nil {
if err := stream.Send(&example.Ping{Stroke: int64(j + 1)}); err != nil {
fmt.Println("err:", err)
return
}
@ -110,7 +110,7 @@ func pingPong(i int) {
fmt.Println("recv err", err)
break
}
fmt.Printf("Sent ping %v got pong %v\n", j, rsp.Stroke)
fmt.Printf("Sent ping %v got pong %v\n", j+1, rsp.Stroke)
}
if stream.Error() != nil {