MCPcopy Create free account
hub / github.com/cortexproject/cortex / NewActiveUsers

Function NewActiveUsers

pkg/util/users/active_user.go:20–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func NewActiveUsers() *ActiveUsers {
21 return &ActiveUsers{
22 timestamps: map[string]*atomic.Int64{},
23 }
24}
25
26func (m *ActiveUsers) UpdateUserTimestamp(userID string, ts int64) {
27 m.mu.RLock()

Calls

no outgoing calls