Skip to content

Commit

Permalink
fix: send stop command after normal stop of reading
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Staykov committed Oct 11, 2024
1 parent 1a0812e commit 561a4b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zk/datastream/client/stream_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ LOOP:

if c.header.TotalEntries == entryNum+1 {
log.Trace("reached the end of the stream", "header_totalEntries", c.header.TotalEntries, "entryNum", entryNum)
if err = c.sendStopCmd(); err != nil {
return fmt.Errorf("failed to send the stop command: %v", err)
}
break LOOP
}
}
Expand Down

0 comments on commit 561a4b7

Please sign in to comment.