Skip to content

Commit

Permalink
Increases the GraphQL subscription client buffer size to 1MB to handl…
Browse files Browse the repository at this point in the history
…e larger event chunks (#220)

Co-authored-by: Marin Dzhigarov <[email protected]>
  • Loading branch information
anujc25 and Marin Dzhigarov authored Nov 21, 2024
1 parent 0fe7714 commit 2ff0733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/hub/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (c *hubClient) Subscribe(ctx context.Context, req *Request, handler EventRe

eventChan := make(chan EventResponse)
errChan := make(chan error)
reader := sse.NewEventStreamReader(httpResp.Body, 1024)
reader := sse.NewEventStreamReader(httpResp.Body, 1024*1024)

go func() {
errChan <- waitForEvents(reader, eventChan)
Expand Down

0 comments on commit 2ff0733

Please sign in to comment.