(bucketID int64)
| 210 | } |
| 211 | |
| 212 | func formatRecentRequestBucketLabel(bucketID int64) string { |
| 213 | start := time.Unix(bucketID*recentRequestBucketSeconds, 0).In(time.Local) |
| 214 | end := start.Add(time.Duration(recentRequestBucketSeconds) * time.Second) |
| 215 | return start.Format("15:04") + "-" + end.Format("15:04") |
| 216 | } |
| 217 | |
| 218 | func (a *Auth) recordRecentRequest(now time.Time, success bool) { |
| 219 | if a == nil { |
no test coverage detected