Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
This fixes the following deprecation warning:
WARN: `config.options[:key] = value` is deprecated, use `config[:key] = value`: ["/usr/share/gems/gems/dynflow-1.8.2/lib/dynflow.rb:28:in `block in process_world'", "/usr/share/gems/gems/sidekiq-6.5.12/lib/sidekiq.rb:142:in `configure_server'"]
  • Loading branch information
sbernhard committed May 14, 2024
1 parent 6893f67 commit ad3d1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class << self
# @return [Dynflow::World, nil]
def process_world
return @process_world if defined? @process_world
@process_world = Sidekiq.configure_server { |c| c.options[:dynflow_world] }
@process_world = Sidekiq.configure_server { |c| c[:dynflow_world] }
raise "process world is not set" unless @process_world
@process_world
end
Expand Down

0 comments on commit ad3d1ab

Please sign in to comment.