Skip to content

Commit

Permalink
Remove rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
arimatakao committed Jul 1, 2024
1 parent 0934bf4 commit 010728b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/meta.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package app

const (
VERSION = "v1.10.2"
VERSION = "v1.10.3"

API_VERSION = "v5.10.2"

Expand Down
4 changes: 2 additions & 2 deletions mangadexapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"time"

"github.com/go-resty/resty/v2"
"golang.org/x/time/rate"
)

const (
Expand Down Expand Up @@ -117,7 +116,8 @@ func NewClient(userAgent string) Clientapi {
}

c := resty.New().
SetRateLimiter(rate.NewLimiter(rate.Every(time.Second*1), 1)).
SetRetryCount(5).
SetRetryWaitTime(time.Second*2).
SetLogger(silentLogger{}).
SetBaseURL(base_url).
SetHeader("User-Agent", userAgent)
Expand Down

0 comments on commit 010728b

Please sign in to comment.