Skip to content

Commit ca2f78a

Browse files
Update docs/examples/rpc_echo_server/main.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4598ad5 commit ca2f78a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • docs/examples/rpc_echo_server

docs/examples/rpc_echo_server/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ func main() {
7373
if err != nil {
7474
panic(err)
7575
}
76-
reply, _ = requester.GetReplyQueue()
76+
reply, err = requester.GetReplyQueue()
77+
if err != nil {
78+
panic(fmt.Errorf("failed to get reply queue: %w", err))
79+
}
7780
fmt.Printf("replyTo to %s \n", reply)
7881

7982
// Set up a channel to listen for OS signals

0 commit comments

Comments
 (0)