That's better. Cleaning up is clean.
This commit is contained in:
@@ -17,5 +17,7 @@ object HelloWorldProducer extends App {
|
||||
println("Publishing ", messageBody)
|
||||
channel.basicPublish("hello-exchange", "hola", null,
|
||||
messageBody.toCharArray().map(_.toByte))
|
||||
|
||||
connection.close()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user