Projects STRLCPY scorecard Commits 5f13a66c
🤬
  • ■ ■ ■ ■
    clients/githubrepo/roundtripper/tokens/round_robin.go
    skipped 35 lines
    36 36   
    37 37   // If selected accessToken is unavailable, wait.
    38 38   for !atomic.CompareAndSwapInt64(&tokens.accessState[index], 0, time.Now().Unix()) {
    39  - currVal := tokens.accessState[index]
     39 + currVal := atomic.LoadInt64(&tokens.accessState[index])
    40 40   expired := time.Now().After(time.Unix(currVal, 0).Add(expiryTimeInSec * time.Second))
    41 41   if !expired {
    42 42   continue
    skipped 20 lines
Please wait...
Page is in error, reload to recover