You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

check_worker.rb 289B

1234567891011
  1. class CheckWorker
  2. include Sidekiq::Worker
  3. sidekiq_options retry: false
  4. def perform(host, port)
  5. # analysis = Analysis.pending self.type, host, port
  6. host = SimpleIDN.to_ascii host.downcase
  7. result = self.analyze host, port
  8. Analysis.result self.type, host, port, result
  9. end
  10. end