MCPcopy
hub / github.com/ccfos/nightingale / SetLastActiveTime

Method SetLastActiveTime

memsto/user_cache.go:197–203  ·  view source on GitHub ↗
(userId int64, lastActiveTime int64)

Source from the content-addressed store, hash-verified

195}
196
197func (uc *UserCacheType) SetLastActiveTime(userId int64, lastActiveTime int64) {
198 uc.Lock()
199 defer uc.Unlock()
200 if user, exists := uc.users[userId]; exists {
201 user.LastActiveTime = lastActiveTime
202 }
203}
204
205func (uc *UserCacheType) loopUpdateLastActiveTime() {
206 defer func() {

Callers 1

userMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected