Skip to content

Commit

Permalink
Fix Ruyb 2.7 keyword arguments warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arku committed Aug 26, 2020
1 parent 1ae410c commit da65ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/good_job/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ def initialize(execution_mode: nil, queues: nil, max_threads: nil, poll_interval
execution_mode = :inline
end

configuration = GoodJob::Configuration.new(
configuration = GoodJob::Configuration.new({
execution_mode: execution_mode,
queues: queues,
max_threads: max_threads,
poll_interval: poll_interval
)
})

@execution_mode = configuration.execution_mode
raise ArgumentError, "execution_mode: must be one of #{EXECUTION_MODES.join(', ')}." unless EXECUTION_MODES.include?(@execution_mode)
Expand Down

0 comments on commit da65ddd

Please sign in to comment.