Skip to content

Commit aee626b

Browse files
author
zhangenyao
committed
fix:reader don't exit in some cases.
1 parent e99bcf1 commit aee626b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stream_batch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (sbr *streamBatchReader) reachedEndOfTheGeneration(windowEnd gocql.UUID) bo
299299

300300
func (sbr *streamBatchReader) close(processUntil gocql.UUID) {
301301
sbr.endTimestamp.Store(processUntil)
302-
sbr.interruptCh <- struct{}{}
302+
close(sbr.interruptCh)
303303
}
304304

305305
func (sbr *streamBatchReader) stopNow() {

0 commit comments

Comments
 (0)