mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-07-28 01:27:58 +00:00
fix: resolve golines lint issue in subscription.go
Split long log.Printf lines to comply with 120-char line length limit.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user