Skip to content

Commit 9a5291d

Browse files
committed
Fixed rate limiting for download password
1 parent 709310f commit 9a5291d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/webserver/ratelimiter/RateLimiter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func WaitOnLogin(ip string) {
4141
// WaitOnDownloadPassword blocks the current goroutine until the rate limiter allows a request
4242
// Ten attempts without limiting, thereafter one attempt every 2 seconds
4343
func WaitOnDownloadPassword(ip string) {
44-
_ = failedLoginLimiter.Get(ip, 1, 20).WaitN(context.Background(), 2)
44+
_ = failedDownloadPasswordLimiter.Get(ip, 1, 20).WaitN(context.Background(), 2)
4545
}
4646

4747
// WaitOnFailedId blocks the current goroutine until the rate limiter allows a request

0 commit comments

Comments
 (0)