[management] move rate limiter to shared package (#7727)

This commit is contained in:
Pascal Fischer
2026-09-28 15:44:52 +02:00
committed by GitHub
parent 979571a99f
commit 5d92c89227
13 changed files with 81 additions and 58 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/s3"
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/management/server/http/middleware"
"github.com/netbirdio/netbird/shared/ratelimit"
"github.com/netbirdio/netbird/upload-server/types"
)
@@ -23,7 +23,7 @@ type sThree struct {
presignClient *s3.PresignClient
}
func configureS3Handlers(mux *http.ServeMux, limiter *middleware.APIRateLimiter) error {
func configureS3Handlers(mux *http.ServeMux, limiter *ratelimit.APIRateLimiter) error {
bucket := os.Getenv(bucketVar)
region, ok := os.LookupEnv("AWS_REGION")
if !ok {