Skip to content

Commit e1303e2

Browse files
authored
always call consumer process even if reach end (#345)
1 parent 06c2d57 commit e1303e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

consumer/shard_worker.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ func (c *ShardConsumerWorker) fetchLogs(cursor string) (shouldCallProcess bool,
115115
if cursor == plm.NextCursor { // already reach end of shard
116116
c.saveCheckPointIfNeeded()
117117
time.Sleep(noProgressSleepTime)
118-
return false, nil, nil
118+
return true, &sls.LogGroupList{
119+
LogGroups: make([]*sls.LogGroup, 0),
120+
}, nil
119121
}
120122
return true, logGroupList, plm
121123
}

0 commit comments

Comments
 (0)