format code

This commit is contained in:
Deng Ming
2022-12-23 10:25:06 +08:00
committed by Ming Deng
parent ef55bd0fac
commit 0bee140abb
64 changed files with 35 additions and 109 deletions

View File

@@ -53,8 +53,8 @@ var defaultRejectionResponse = RejectionResponse{
// according to the configuration.
func NewLimiter(opts ...limiterOption) web.FilterFunc {
l := &limiter{
buckets: make(map[string]bucket),
sessionKey: defaultSessionKey,
buckets: make(map[string]bucket),
sessionKey: defaultSessionKey,
rate: time.Millisecond * 10,
capacity: 100,
bucketFactory: newTokenBucket,