Skip to content

Commit

Permalink
fix: fixes broken minimum logs. see #3383 (#3384)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 authored Nov 13, 2024
1 parent d7662c3 commit 48e509e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/web/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (h *handler) fetchLogsBetweenDates(w http.ResponseWriter, r *http.Request)
}

encoder := json.NewEncoder(w)
outer:

for {
if buffer.Len() > minimum {
break
Expand Down Expand Up @@ -199,7 +199,7 @@ outer:

if lastSeenId != 0 && event.Id == lastSeenId {
log.Debug().Uint32("lastSeenId", lastSeenId).Msg("found last seen id")
break outer
break
}

buffer.Push(event)
Expand Down

0 comments on commit 48e509e

Please sign in to comment.