mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-02-21 14:06:52 +08:00
fix not all logs are submitted error check
This commit is contained in:
@ -296,10 +296,11 @@ func (r *Reporter) ReportLog(noMore bool) error {
|
||||
|
||||
r.stateMu.Lock()
|
||||
r.logRows = r.logRows[ack-r.logOffset:]
|
||||
submitted := r.logOffset + len(rows)
|
||||
r.logOffset = ack
|
||||
r.stateMu.Unlock()
|
||||
|
||||
if noMore && ack < r.logOffset+len(rows) {
|
||||
if noMore && ack < submitted {
|
||||
return fmt.Errorf("not all logs are submitted")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user