switchup init

This commit is contained in:
Asim
2015-12-18 01:21:56 +00:00
parent 4cba0c57ab
commit a5be9ca585
2 changed files with 7 additions and 25 deletions

View File

@@ -64,20 +64,11 @@ func stream() {
return
}
fmt.Println("sending request")
if err := stream.Send(&example.StreamingRequest{
Count: int64(10),
}); err != nil {
fmt.Println("err", err)
return
}
fmt.Println("sent request")
for stream.Error() == nil {
rsp := &example.StreamingResponse{}
err := stream.Recv(rsp)
if err != nil {
fmt.Println(err)
fmt.Println("recv err", err)
break
}
fmt.Println("Stream: rsp:", rsp.Count)