Don't count an Accept as sent unless the response was success

parent a7c154a5
......@@ -72,7 +72,7 @@ class PubRelay::SubscriptionManager::DeliverWorker
@stats.send, response.status_code.to_s, delivery.counter)
if delivery.accept
if delivery.accept && response.success?
rescue exception
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