diff --git a/cmd/backend/backend.go b/cmd/backend/backend.go index abcf17f..ff6e5e4 100644 --- a/cmd/backend/backend.go +++ b/cmd/backend/backend.go @@ -52,7 +52,7 @@ func receiveMessages(d amqp.Delivery) bool { } // publishInput reads user input, marshals to json, and publishes to -// a Rabbit exchange with the front-end and database routing key. +// a Rabbit exchange with the front-end and database routing keys. func publishInput(conn *rabbit.Conn) { reader := bufio.NewReader(os.Stdin) diff --git a/cmd/server/server.go b/cmd/server/server.go index 17f4cd7..a99d2ed 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -124,7 +124,7 @@ func handleWriteWebsocket(ws *websocket.Conn) func(d amqp.Delivery) error { } // handlePublishRabbit publishes a Websocket message to a Rabbit -// exchange with the the back-end and database routing key. +// exchange with the the back-end and database routing keys. // A Websocket reader only passes a message. So, a Rabbit channel is // additionally passed using a closure. func handlePublishRabbit(ch *amqp.Channel) func(msg []byte) error {