invert print order

This commit is contained in:
Shreyas Goenka 2023-03-09 23:18:19 +01:00
parent 78b0cfd008
commit 07c8dbcc56
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func (r *pipelineRunner) logErrorEvent(ctx context.Context, pipelineId string, u
// for the pipeline are should be very close 0, and this would not be worth the additional
// complexity and latency cost for that extremely rare edge case
updateEvents := filterEventsByUpdateId(res.Events, updateId)
for i := 0; i < len(updateEvents); i++ {
for i := len(updateEvents) - 1; i >= 0; i-- {
r.logEvent(updateEvents[i])
}
return nil