diff --git a/developing-with-nats/sending/request_reply.md b/developing-with-nats/sending/request_reply.md index 493764f..0ac521b 100644 --- a/developing-with-nats/sending/request_reply.md +++ b/developing-with-nats/sending/request_reply.md @@ -119,10 +119,10 @@ sub, err := nc.SubscribeSync(replyTo) if err != nil { log.Fatal(err) } -nc.Flush() -// Send the request +// Send the request immeditately nc.PublishRequest(subject, replyTo, []byte(input)) +nc.Flush() // Wait for a single response for {