Skip to content

Commit

Permalink
fix: Return old nextSeq in case no new events were found
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jun 23, 2023
1 parent 8740039 commit 017a199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webui/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (h *eventsHandler) handler(c *gin.Context) {
h.mutex.Lock()
defer h.mutex.Unlock()
var events []string
var nextSeq int64
nextSeq := args.Seq
for e := h.events.Front(); e != nil; e = e.Next() {
e2 := e.Value.(*eventEntry)
if e2.seq < args.Seq {
Expand Down

0 comments on commit 017a199

Please sign in to comment.