mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
minor (see prev commit)
Former-commit-id: 277b7b1517357d6baea98d771b592be2795201a3
This commit is contained in:
parent
3775189de8
commit
1e1d8a4855
|
@ -89,9 +89,7 @@ func Limit(limit float64, burst int, options ...Option) context.Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l *Limiter) acquire() *Client {
|
func (l *Limiter) acquire() *Client {
|
||||||
v := l.pool.Get().(*Client)
|
return l.pool.Get().(*Client)
|
||||||
v.LastSeen = time.Now()
|
|
||||||
return v
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l *Limiter) release(client *Client) {
|
func (l *Limiter) release(client *Client) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user