Skip to content

Commit

Permalink
linter: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shazbert committed May 1, 2024
1 parent dae046d commit 715b1ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exchanges/okx/okx_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (ok *Okx) SetDefaults() {
}
ok.Requester, err = request.New(ok.Name,
common.NewHTTPClientWithTimeout(exchange.DefaultHTTPTimeout),
request.WithLimiter(SetRateLimit(ok)))
request.WithLimiter(SetRateLimit()))
if err != nil {
log.Errorln(log.ExchangeSys, err)
}
Expand Down
2 changes: 1 addition & 1 deletion exchanges/okx/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ const (
)

// SetRateLimit returns a RateLimit instance, which implements the request.Limiter interface.
func SetRateLimit(ok *Okx) request.RateLimitDefinitions {
func SetRateLimit() request.RateLimitDefinitions {
return request.RateLimitDefinitions{
// Trade Endpoints
placeOrderEPL: request.NewRateLimitWithToken(twoSecondsInterval, placeOrderRate, 1),
Expand Down

0 comments on commit 715b1ec

Please sign in to comment.