Skip to content

Commit

Permalink
Update comments in client
Browse files Browse the repository at this point in the history
  • Loading branch information
Asim committed Dec 19, 2015
1 parent 310a84d commit 24d56f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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 {
Expand Down

0 comments on commit 24d56f0

Please sign in to comment.