MCPcopy Index your code
hub / github.com/Preloading/TwitterAPIBridge / GetLock

Function GetLock

twitterv1/auth.go:452–460  ·  view source on GitHub ↗
(userDID string)

Source from the content-addressed store, hash-verified

450}
451
452func GetLock(userDID string) *sync.Mutex {
453 lock, _ := manager.locks.LoadOrStore(userDID, &lockInfo{
454 mutex: &sync.Mutex{},
455 lastAccess: time.Now(),
456 })
457 lockData := lock.(*lockInfo)
458 lockData.lastAccess = time.Now()
459 return lockData.mutex
460}

Callers 1

GetAuthFromReqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected