Hi, I'm running my RabbitMQ on random ports (integration tests), as such I've no idea which port I'm getting, might be a good idea to add an example to the docs, e.g.:
implicit val actorSystem = ActorSystem("such-system")
val rabbitControl = actorSystem.actorOf(Props[RabbitControl])
// In case you override some config at runtime you can create it manually:
// val props = Props(classOf[RabbitControl], Left(ConnectionParams.fromConfig(configuration get[Config] "op-rabbit.connection")))
// val rabbitControl = actorSystem actorOf props
`
Hi, I'm running my RabbitMQ on random ports (integration tests), as such I've no idea which port I'm getting, might be a good idea to add an example to the docs, e.g.:
` import com.spingo.op_rabbit.RabbitControl import akka.actor.{ActorSystem, Props}
implicit val actorSystem = ActorSystem("such-system") val rabbitControl = actorSystem.actorOf(Props[RabbitControl])
// In case you override some config at runtime you can create it manually: // val props = Props(classOf[RabbitControl], Left(ConnectionParams.fromConfig(configuration get[Config] "op-rabbit.connection"))) // val rabbitControl = actorSystem actorOf props `
Thanks for the lib!