From a8af0fb687337c22326d52efbacca60bc848c483 Mon Sep 17 00:00:00 2001 From: WJQSERVER Date: Thu, 24 Oct 2024 01:23:01 +0800 Subject: [PATCH] 24w19a --- main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.go b/main.go index 20e081d..3363c6b 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( "fmt" "log" "net/http" - "time" "ghproxy/api" "ghproxy/auth" @@ -13,7 +12,6 @@ import ( "ghproxy/logger" "ghproxy/proxy" - "github.com/gin-contrib/ratelimit" "github.com/gin-gonic/gin" ) @@ -78,10 +76,6 @@ func init() { router = gin.Default() router.UseH2C = true - router.Use(ratelimit.New( - ratelimit.WithTotolLimit(10), - ratelimit.WithDuration(1*time.Minute), - )) setupApi(cfg, router)