chore: debug logs
Push container / Push branches and PRs (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
Test / Typecheck (push) Has been cancelled
Test / JavaScript Tests (push) Has been cancelled
Test / Go Tests (push) Has been cancelled
Test / Go Staticcheck (push) Has been cancelled
Test / Integration Tests (push) Has been cancelled

This commit is contained in:
Amir Raminfar
2026-04-10 19:38:44 -07:00
parent f195290a30
commit 66d9fa4dd1
+3
View File
@@ -236,8 +236,11 @@ func (c *Client) connect(ctx context.Context, apiKey string) (wasConnected bool,
streamReqID := cancelReq.CancelStream.StreamRequestId
if cancel, loaded := c.activeStreams.LoadAndDelete(streamReqID); loaded {
if cancelFn, ok := cancel.(context.CancelFunc); ok {
log.Debug().Str("request_id", streamReqID).Msg("cancelling active stream")
cancelFn()
}
} else {
log.Warn().Str("request_id", streamReqID).Msg("cancel_stream: no active stream found")
}
continue
}