Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #28 from bbonamin/master
Browse files Browse the repository at this point in the history
Fixes method name typo `unique_expiration`
  • Loading branch information
krasnoukhov committed Oct 11, 2014
2 parents bf623ec + 4848d01 commit 1aa93b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sidekiq-middleware/client/unique_jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def call(worker_class, item, queue, redis_pool = nil)
enabled = Sidekiq::Middleware::Helpers.unique_enabled?(worker_class, item)

if enabled
expiration = Sidekiq::Middleware::Helpers.unique_exiration(worker_class)
expiration = Sidekiq::Middleware::Helpers.unique_expiration(worker_class)
job_id = item['jid']

# Scheduled
Expand Down
2 changes: 1 addition & 1 deletion lib/sidekiq-middleware/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def unique_digest(klass, item)
end
end

def unique_exiration(klass)
def unique_expiration(klass)
klass.get_sidekiq_options['expiration'] || UNIQUE_EXPIRATION
end

Expand Down

0 comments on commit 1aa93b0

Please sign in to comment.