From 6f649a83c462a2436e5ae6dbf10093ae679d7609 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Tue, 12 May 2026 16:08:32 +0100 Subject: [PATCH] Avoid calling potentially nit func --- storage/gcp/antispam/gcp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/gcp/antispam/gcp.go b/storage/gcp/antispam/gcp.go index d68228df7..5a857c69e 100644 --- a/storage/gcp/antispam/gcp.go +++ b/storage/gcp/antispam/gcp.go @@ -380,7 +380,9 @@ func (f *follower) Follow(ctx context.Context, lr tessera.LogReader) { if err != errOutOfSync { slog.ErrorContext(ctx, "Failed to commit antispam population tx", slog.Any("error", err)) } - stop() + if stop != nil { + stop() + } next = nil streamDone = true continue