From c06bfb46bea9e3c917fe6bd35b30d60f9f4a2813 Mon Sep 17 00:00:00 2001 From: JackDoan Date: Mon, 27 Jul 2026 15:26:45 -0500 Subject: [PATCH] overlay/batch: remove end-of-batch debug scaffolding The Warn("==== end of batch ====") delimiter (and the `logged` flag that fed it) was left over from debugging the cross-slot gap logging. Co-Authored-By: Claude Fable 5 --- overlay/batch/tcp_coalesce.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/overlay/batch/tcp_coalesce.go b/overlay/batch/tcp_coalesce.go index 0beecbe1..2c44c3aa 100644 --- a/overlay/batch/tcp_coalesce.go +++ b/overlay/batch/tcp_coalesce.go @@ -450,7 +450,6 @@ func (c *TCPCoalescer) reorderForFlush() { runStart = i + 1 } out := c.slots[:0] - logged := false for _, s := range c.slots { if n := len(out); n > 0 { prev := out[n-1] @@ -463,7 +462,6 @@ func (c *TCPCoalescer) reorderForFlush() { // gap via its OOO queue. if c.l.Enabled(context.Background(), slog.LevelDebug) { if prev.nextSeq != slotSeedSeq(s) { - logged = true gap := int64(slotSeedSeq(s)) - int64(prev.nextSeq) c.l.Debug("tcp coalesce: cross-slot seq gap", "src", flowKeyAddr(s.fk, false), @@ -489,9 +487,6 @@ func (c *TCPCoalescer) reorderForFlush() { } out = append(out, s) } - if logged { - c.l.Warn("==== end of batch ====") - } c.slots = out }