Skip to content

Commit 0ecbcae

Browse files
author
王荣昌
committed
fix(client): optimize and standardize the readSSEStream function handling
1 parent 250317c commit 0ecbcae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/transport/sse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (c *SSE) readSSE(ctx context.Context, reader io.ReadCloser) {
131131

132132
// handleSSEEvent processes SSE events based on their type.
133133
// Handles 'endpoint' events for connection setup and 'message' events for JSON-RPC communication.
134-
func (c *SSE) handleSSEEvent(evt sseEvent) {
134+
func (c *SSE) handleSSEEvent(evt SSEEvent) {
135135
switch evt.event {
136136
case "endpoint":
137137
endpoint, err := c.baseURL.Parse(evt.data)

0 commit comments

Comments
 (0)