Class: Workers::ReceiveUnencryptedSalmon

Inherits:
Base
  • Object
show all
Defined in:
app/workers/receive_unencrypted_salmon.rb

Instance Method Summary collapse

Methods inherited from Base

#suppress_annoying_errors

Instance Method Details

#perform(xml) ⇒ Object


9
10
11
12
13
14
15
16
17
18
19
# File 'app/workers/receive_unencrypted_salmon.rb', line 9

def perform(xml)
  suppress_annoying_errors do
    begin
      receiver = Postzord::Receiver::Public.new(xml)
      receiver.perform!
    rescue => e
      FEDERATION_LOGGER.info(e.message)
      raise e
    end
  end
end