Skip to content

Commit

Permalink
## [2.0.3] - 2024-03-03
Browse files Browse the repository at this point in the history
### Changed
- `Rate-Limit` bug fixed.
  • Loading branch information
fmunozmiranda committed Mar 4, 2024
1 parent effabe5 commit 3a13157
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.3] - 2024-03-03
### Changed
- `Rate-Limit` bug fixed.

## [2.0.2] - 2024-03-01
### Added
- `User-Agent` added.
- `Rate-Limit` handled.

## [2.0.1] - 2024-02-26
### Changed
`ResponseApplianceUpdateNetworkApplianceVLAN` changes ID from `string` to `int`.
- `ResponseApplianceUpdateNetworkApplianceVLAN` changes ID from `string` to `int`.

## [2.0.0] - 2024-02-26
### Added
Expand Down
7 changes: 2 additions & 5 deletions sdk/api_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package meraki

import (
"crypto/tls"
"errors"
"fmt"
"net/http"
"os"
Expand Down Expand Up @@ -92,10 +91,8 @@ func NewClient() (*Client, error) {
return r.StatusCode() == http.StatusTooManyRequests
},
)
c.common.client.SetRetryCount(1)
c.common.client.SetRetryAfter(func(client *resty.Client, resp *resty.Response) (time.Duration, error) {
return 5 * time.Second, errors.New("quota exceeded")
})
c.common.client.SetRetryCount(2)
c.common.client.SetRetryWaitTime(5 * time.Second)
return c, nil
}

Expand Down

0 comments on commit 3a13157

Please sign in to comment.