Skip to content

Commit

Permalink
feat: panic when EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
erayarslan committed Nov 6, 2023
1 parent 77bf678 commit 9b981ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s *stream) listen() {
func (s *stream) listenEnd() {
for endContext := range s.observer.ListenEnd() {
if endContext.Err != nil && errors.Is(endContext.Err, gocbcore.ErrSocketClosed) {
s.openStream(endContext.Event.VbID)
panic(endContext.Err)
} else {
s.activeStreams--
if s.activeStreams == 0 {
Expand Down

0 comments on commit 9b981ce

Please sign in to comment.