Don't actually deliver to self domain

parent 2645fe3c
......@@ -30,6 +30,7 @@ class PubRelay::SubscriptionManager::DeliverWorker
def call(delivery : Delivery)
if delivery.domain == @domain
@stats.send Stats::DeliveryPayload.new(@domain, "SELF DOMAIN", delivery.counter)
return
end
body_hash = OpenSSL::Digest.new("sha256")
......
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