Cleanup Stats exception handler in DeliverWorker

parent c87e0232
......@@ -75,10 +75,9 @@ class PubRelay::SubscriptionManager::DeliverWorker
if delivery.accept && response.success?
rescue exception
exception_code = exception.try(&.inspect) || "Exited"
@stats.send, exception_code, delivery.counter)
raise exception
rescue ex
@stats.send, ex.inspect, delivery.counter)
raise ex
def reset
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment