Skip to content

Commit

Permalink
Update rate.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy0411 committed Aug 28, 2024
1 parent fc64dfa commit 78daabe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/rate/rate.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func NewLimiter(interval time.Duration, burst int) *Limiter {
}

// LastTouch ...
func (lim *Limiter) LastTouch() int {
return lim.lastTime.Second()
func (lim *Limiter) LastTouch() int64 {
return lim.lastTimeUnix()

Check failure on line 69 in extension/rate/rate.go

View workflow job for this annotation

GitHub Actions / lint

lim.lastTime。Unix undefined (type *Limiter has no field or method lastTime。Unix)

Check failure on line 69 in extension/rate/rate.go

View workflow job for this annotation

GitHub Actions / lint

invalid character U+3002 '。' in identifier (typecheck)

Check failure on line 69 in extension/rate/rate.go

View workflow job for this annotation

GitHub Actions / lint

illegal character U+3002 '。' (typecheck)

Check failure on line 69 in extension/rate/rate.go

View workflow job for this annotation

GitHub Actions / lint

lim.lastTime。Unix undefined (type *Limiter has no field or method lastTime。Unix)

Check failure on line 69 in extension/rate/rate.go

View workflow job for this annotation

GitHub Actions / lint

invalid character U+3002 '。' in identifier) (typecheck)

Check failure on line 69 in extension/rate/rate.go

View workflow job for this annotation

GitHub Actions / CI

lim.lastTime。Unix undefined (type *Limiter has no field or method lastTime。Unix)

Check failure on line 69 in extension/rate/rate.go

View workflow job for this annotation

GitHub Actions / CI

invalid character U+3002 '。' in identifier
}

// Acquire ...
Expand Down

0 comments on commit 78daabe

Please sign in to comment.