From 2de19af21dc1e789e86d4049bfb889b57f0df199 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 4 Jun 2020 09:05:33 +0100 Subject: [PATCH] Don't reset counters before successful outgoing federation request on incoming federation request --- federationsender/queue/destinationqueue.go | 1 - 1 file changed, 1 deletion(-) diff --git a/federationsender/queue/destinationqueue.go b/federationsender/queue/destinationqueue.go index 4ab610de7..080ecbd93 100644 --- a/federationsender/queue/destinationqueue.go +++ b/federationsender/queue/destinationqueue.go @@ -59,7 +59,6 @@ func (oq *destinationQueue) retry() { // and then skip ahead a lot which feels non-ideal but equally we can't persist thousands of events // in-memory to maybe-send it one day. Ideally we would just shove these pending events in a database // so we can send a lot of events. - oq.statistics.Success() // if we were backing off, swap to not backing off and interrupt the select. // We need to use an atomic bool here to prevent multiple calls to retry() blocking on the channel // as it is unbuffered.