mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-23 17:53:05 +02:00
Update comments in client
This commit is contained in:
parent
310a84d059
commit
24d56f0035
@ -100,7 +100,7 @@ func pingPong(i int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for j := 0; j < i; j++ {
|
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)
|
fmt.Println("err:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -110,7 +110,7 @@ func pingPong(i int) {
|
|||||||
fmt.Println("recv err", err)
|
fmt.Println("recv err", err)
|
||||||
break
|
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 {
|
if stream.Error() != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user