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