Skip to content

Commit

Permalink
client
Browse files Browse the repository at this point in the history
  • Loading branch information
LdDl committed Jun 10, 2022
1 parent ea0174b commit 02f582e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,17 @@ func main() {
for {
serverResp, err := privateStreamData.Recv()
if err == io.EOF {
done <- true
return
}
if err != nil {
fmt.Println(err)
done <- true
break
}
if serverResp == nil {
fmt.Println("Nil data")
done <- true
return
}
fmt.Printf("Message from server: %v\n", serverResp.Message)
Expand Down

0 comments on commit 02f582e

Please sign in to comment.