Skip to content

Commit

Permalink
Add warning log when receiving multiple thread ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 29, 2024
1 parent ce6e7b9 commit 730999b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ func (user *User) requestMoreInbox(ctx context.Context, itrs []*table.LSUpsertIn
return
}
log := zerolog.Ctx(ctx)
if len(itrs) > 1 {
log.Warn().Any("thread_ranges", itrs).Msg("Got multiple thread ranges in upsertInboxThreadsRange")
}
itr := itrs[0]
user.InboxPagesFetched++
reachedPageLimit := maxInboxPages > 0 && user.InboxPagesFetched > maxInboxPages
Expand Down

0 comments on commit 730999b

Please sign in to comment.