Closed thoughtless closed 10 years ago
It is purely defensive, in case you pass in nil
. It does also let you do something like Producer.new(ENV["URL"], ENV["TIMEOUT"])
. We could also do this in the initializer. It just didn't seem worth much extra though.
This allows customizing the publish timeout when setting up a new Producer. Previously you would have to set the custom timeout on each message.