Skip to content

Commit 1fcf993

Browse files
committed
fixup! feat(ratelimit): setup rate limiter
1 parent a4c1cfd commit 1fcf993

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cmd/server/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"net/http"
99
"os"
1010
"os/signal"
11-
"time"
1211

1312
"github.com/gin-gonic/gin"
1413
"github.com/olexsmir/onasty/internal/config"
@@ -91,13 +90,10 @@ func run(ctx context.Context) error {
9190
Burst: cfg.RateLimiterBurst,
9291
}
9392

94-
rateLimiterConfigForEmailSending := ratelimit.Config{RPS: 1, TTL: time.Minute, Burst: 1}
95-
9693
handler := httptransport.NewTransport(
9794
usersrv,
9895
notesrv,
9996
rateLimiterConfig,
100-
rateLimiterConfigForEmailSending,
10197
)
10298

10399
// http server

0 commit comments

Comments
 (0)