MCPcopy
hub / github.com/grafana/tempo / ReuseLastUser

Method ReuseLastUser

modules/frontend/queue/queue.go:29–34  ·  view source on GitHub ↗

Modify index to start iteration on the same user, for which last queue was returned.

()

Source from the content-addressed store, hash-verified

27
28// Modify index to start iteration on the same user, for which last queue was returned.
29func (ui UserIndex) ReuseLastUser() UserIndex {
30 if ui.last >= 0 {
31 return UserIndex{last: ui.last - 1}
32 }
33 return ui
34}
35
36// FirstUser returns UserIndex that starts iteration over user queues from the very first user.
37func FirstUser() UserIndex {

Callers 1

ProcessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected