Skip to content

Commit

Permalink
fix rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-remind101 committed Feb 28, 2024
1 parent d0add72 commit be02a1f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
9 changes: 7 additions & 2 deletions lib/sidekiq/grouping/adapters/redis_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./base_adapter"
require_relative "base_adapter"
require_relative "../redis_dispatcher"
require_relative "../redis_scripts"

Expand All @@ -19,7 +19,12 @@ def push_messages(name, messages, remember_unique: false)
remember_unique.to_s
]
argv = [messages]
redis_call(:evalsha, RedisScripts.script_hash(:merge_array), keys, argv)
redis_call(
:evalsha,
RedisScripts.script_hash(:merge_array),
keys,
argv
)
end

def pluck(name, limit)
Expand Down
2 changes: 1 addition & 1 deletion lib/sidekiq/grouping/adapters/redis_client_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./base_adapter"
require_relative "base_adapter"
require_relative "../redis_dispatcher"
require_relative "../redis_scripts"

Expand Down
8 changes: 4 additions & 4 deletions lib/sidekiq/grouping/redis.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# frozen_string_literal: true

require_relative "./redis_dispatcher"
require_relative "./redis_scripts"
require_relative "./adapters/redis_adapter"
require_relative "./adapters/redis_client_adapter"
require_relative "redis_dispatcher"
require_relative "redis_scripts"
require_relative "adapters/redis_adapter"
require_relative "adapters/redis_client_adapter"

module Sidekiq
module Grouping
Expand Down
2 changes: 1 addition & 1 deletion spec/modules/batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

describe Sidekiq::Grouping::Batch do
describe Sidekiq::Grouping::Batch do # rubocop:disable RSpec/SpecFilePathFormat
subject(:batch_service) { described_class }

context "when adding" do
Expand Down
2 changes: 1 addition & 1 deletion spec/modules/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "spec_helper"

describe Sidekiq::Grouping::Redis do
describe Sidekiq::Grouping::Redis do # rubocop:disable RSpec/SpecFilePathFormat
include Sidekiq::Grouping::RedisDispatcher

subject(:redis_service) { described_class.new }
Expand Down

0 comments on commit be02a1f

Please sign in to comment.