@@ -28,11 +28,11 @@ defmodule Exq.Support.Opts do
2828 else
2929 host = opts [ :host ] || Config . get ( :host )
3030 port = opts [ :port ] || Config . get ( :port )
31- database = opts [ :database ] || Config . get ( :database , 0 )
31+ database = opts [ :database ] || Config . get ( :database )
3232 password = opts [ :password ] || Config . get ( :password )
3333 [ host: host , port: port , database: database , password: password ]
3434 end
35- reconnect_on_sleep = opts [ :reconnect_on_sleep ] || Config . get ( :reconnect_on_sleep , 100 )
35+ reconnect_on_sleep = opts [ :reconnect_on_sleep ] || Config . get ( :reconnect_on_sleep )
3636 timeout = opts [ :redis_timeout ] || Config . get ( :redis_timeout )
3737 { redis_opts , [ backoff: reconnect_on_sleep , timeout: timeout , name: opts [ :redis ] ] }
3838 end
@@ -46,7 +46,7 @@ defmodule Exq.Support.Opts do
4646 scheduler_enable = opts [ :scheduler_enable ] || Config . get ( :scheduler_enable )
4747 namespace = opts [ :namespace ] || Config . get ( :namespace )
4848 scheduler_poll_timeout = opts [ :scheduler_poll_timeout ] || Config . get ( :scheduler_poll_timeout )
49- poll_timeout = opts [ :poll_timeout ] || Config . get ( :poll_timeout , 50 )
49+ poll_timeout = opts [ :poll_timeout ] || Config . get ( :poll_timeout )
5050
5151 enqueuer = Exq.Enqueuer.Server . server_name ( opts [ :name ] )
5252 stats = Exq.Stats.Server . server_name ( opts [ :name ] )
@@ -55,7 +55,7 @@ defmodule Exq.Support.Opts do
5555 middleware = Exq.Middleware.Server . server_name ( opts [ :name ] )
5656
5757 queue_configs = opts [ :queues ] || Config . get ( :queues )
58- per_queue_concurrency = opts [ :concurrency ] || Config . get ( :concurrency , 10_000 )
58+ per_queue_concurrency = opts [ :concurrency ] || Config . get ( :concurrency )
5959 queues = get_queues ( queue_configs )
6060 concurrency = get_concurrency ( queue_configs , per_queue_concurrency )
6161 default_middleware = Config . get ( :middleware )
0 commit comments