merge: v3.8.4

pull/3625/head
icey-yu 10 months ago
parent 6f1cb995e9
commit 1a67f199dc

@ -97,6 +97,7 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf
case BestSpeed: case BestSpeed:
r.Use(gzip.Gzip(gzip.BestSpeed)) r.Use(gzip.Gzip(gzip.BestSpeed))
} }
// Use rate limiter middleware // Use rate limiter middleware
if cfg.API.RateLimiter.Enable { if cfg.API.RateLimiter.Enable {
rl := &RateLimiter{ rl := &RateLimiter{

Loading…
Cancel
Save