Skip to content

Commit

Permalink
chore: delete limiter middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
L2ncE committed Apr 5, 2023
1 parent 8d12215 commit 53c8cb2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/cmd/api/biz/router/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/cloudwego/hertz/pkg/app"
"github.com/cloudwego/hertz/pkg/common/hlog"
"github.com/hertz-contrib/gzip"
"github.com/hertz-contrib/limiter"
"github.com/hertz-contrib/paseto"
)

Expand All @@ -24,8 +23,6 @@ func CommonMW() []app.HandlerFunc {
middleware.Recovery(),
// use gzip mw
gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedExtensions([]string{".jpg", ".mp4", ".png"})),
// use limiter mw
limiter.AdaptiveLimit(limiter.WithCPUThreshold(900)),
}
}

Expand Down

0 comments on commit 53c8cb2

Please sign in to comment.