Skip to content

Commit

Permalink
don't close eventschannel on error
Browse files Browse the repository at this point in the history
  • Loading branch information
treethought committed Nov 4, 2024
1 parent 3ed7a44 commit e83d9bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/client/event/event_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func (h *EventStream) Subscribe(eventsChannel chan<- *Event) {
EventType: EventConnectionError,
Data: []byte(errors.Wrap(err, client.ErrConnectionIssue.Error()).Error()),
}
close(eventsChannel)
return
}

Expand Down

0 comments on commit e83d9bc

Please sign in to comment.