From fcc2882ffa4bc23cefac1ce535f2e2db2616fbbf Mon Sep 17 00:00:00 2001 From: SiYue-ZO <2835601846@qq.com> Date: Tue, 16 Jun 2026 00:53:18 +0800 Subject: [PATCH] fix: resolve golines lint issue in subscription.go Split long log.Printf lines to comply with 120-char line length limit. --- pkg/events/subscription.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/events/subscription.go b/pkg/events/subscription.go index d8486ee5..ebfcec1f 100644 --- a/pkg/events/subscription.go +++ b/pkg/events/subscription.go @@ -261,7 +261,10 @@ func (s *eventSubscription) handle(ctx context.Context, evt Event) { go func() { defer func() { if r := recover(); r != nil { - log.Printf("events: subscriber %q timeout-handler goroutine panic recovered: %v\n%s", s.name, r, debug.Stack()) + log.Printf( + "events: subscriber %q timeout-handler goroutine panic recovered: %v\n%s", + s.name, r, debug.Stack(), + ) done <- handlerResult{panicked: true} } }() @@ -316,7 +319,10 @@ func (s *eventSubscription) watchContext(ctx context.Context) { go func() { defer func() { if r := recover(); r != nil { - log.Printf("events: subscriber %q watchContext goroutine panic recovered: %v\n%s", s.name, r, debug.Stack()) + log.Printf( + "events: subscriber %q watchContext goroutine panic recovered: %v\n%s", + s.name, r, debug.Stack(), + ) } }() select {