fix(fe/be): clean up and enable quota in ui
This commit is contained in:
parent
cdd15be4aa
commit
f986015c0b
11 changed files with 41 additions and 159 deletions
|
@ -2,7 +2,6 @@ package golimiter
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
// "math"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
@ -36,7 +35,6 @@ func (b *Bucket) Access(cyc, incr, decr int) bool {
|
|||
After(now) {
|
||||
return false
|
||||
}
|
||||
fmt.Println(4)
|
||||
b.token = incr - decr
|
||||
b.refreshedAt = now
|
||||
return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue