1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-08-24 20:08:55 +02:00
This commit is contained in:
ebosas
2021-06-08 21:30:53 +03:00
parent 4a783cf5f1
commit 0bab170f33
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ func receiveMessages(d amqp.Delivery) bool {
} }
// publishInput reads user input, marshals to json, and publishes to // 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) { func publishInput(conn *rabbit.Conn) {
reader := bufio.NewReader(os.Stdin) reader := bufio.NewReader(os.Stdin)

View File

@@ -124,7 +124,7 @@ func handleWriteWebsocket(ws *websocket.Conn) func(d amqp.Delivery) error {
} }
// handlePublishRabbit publishes a Websocket message to a Rabbit // 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 // A Websocket reader only passes a message. So, a Rabbit channel is
// additionally passed using a closure. // additionally passed using a closure.
func handlePublishRabbit(ch *amqp.Channel) func(msg []byte) error { func handlePublishRabbit(ch *amqp.Channel) func(msg []byte) error {