Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix incorrect skipping of +1 count in sliding window check. Closes #2894.

Kailash Nadhe7b09fd09484
diff --git a/internal/manager/pipe.go b/internal/manager/pipe.go
index c0a4e657..69ad8b9e 100644
--- a/internal/manager/pipe.go
+++ b/internal/manager/pipe.go
@@ -111,7 +111,6 @@ func (p *pipe) NextSubscribers() (bool, error) {
if diff >= p.m.cfg.SlidingWindowDuration {
p.m.slidingStart = time.Now()
p.m.slidingCount = 0
- continue
}
// Have the messages exceeded the limit?