Skip to content

Commit 44f2459

Browse files
committed
Revert "exit foreach immediately when limit is reached"
This reverts commit 59f2e68.
1 parent 59f2e68 commit 44f2459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/orchestrator/internal/template/server/template_status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ func (s *ServerStore) TemplateBuildStatus(ctx context.Context, in *template_mana
7171
continue
7272
}
7373

74-
logEntries = append(logEntries, entry)
75-
7674
if uint32(len(logEntries)) >= limit {
7775
break
7876
}
77+
78+
logEntries = append(logEntries, entry)
7979
}
8080

8181
// If the direction is backward, we need to reverse the log entries again to have them back in the ascending order

0 commit comments

Comments
 (0)