That's better. Cleaning up is clean.

This commit is contained in:
Dan Buch 2012-11-15 07:52:32 -05:00
parent dda8e8cb85
commit 374c5e03fa

View File

@ -17,5 +17,7 @@ object HelloWorldProducer extends App {
println("Publishing ", messageBody)
channel.basicPublish("hello-exchange", "hola", null,
messageBody.toCharArray().map(_.toByte))
connection.close()
}
}