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 (#219)

Co-authored-by: Marin Dzhigarov <[email protected]>
  • Loading branch information
mdzhigarov and Marin Dzhigarov authored Nov 21, 2024
1 parent b5f3499 commit efeb279
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 efeb279

Please sign in to comment.