Skip to content

Commit

Permalink
Implement SSE
Browse files Browse the repository at this point in the history
  • Loading branch information
suryadana committed Sep 17, 2023
1 parent 5b69b5c commit 7c4a773
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stream_bouncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,11 @@ func (b *StreamBouncer) RunStream(ctx context.Context) {
log.Errorf("Response status is %d", resp.StatusCode)
}

log.Info(resp.StatusCode)


for {
select {
case <-ctx.Done():
close(b.Stream)
resp.Body.Close()
return
default:
Expand Down

0 comments on commit 7c4a773

Please sign in to comment.