Skip to content

Commit

Permalink
refactor: remove duplicated method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nejdetkadir committed Apr 25, 2023
1 parent 911c9d8 commit 1173780
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/sidekiq/aws/sqs/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,24 @@ def poller
end

def start_polling
validate_sqs_options!

Sidekiq::AWS::SQS.logger.debug("Starting polling for #{self}")

@poller&.start || poller
end

def stop_polling
validate_sqs_options!

Sidekiq::AWS::SQS.logger.debug("Stopping polling for #{self}")

@poller&.stop
end

def pause_polling
validate_sqs_options!

Sidekiq::AWS::SQS.logger.debug("Pausing polling for #{self}")

@poller&.pause
end

def resume_polling
validate_sqs_options!

Sidekiq::AWS::SQS.logger.debug("Resuming polling for #{self}")

@poller&.resume
Expand Down

0 comments on commit 1173780

Please sign in to comment.