Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #71 from panxl6/master
Browse files Browse the repository at this point in the history
Removed local rate limit
  • Loading branch information
panxl6 authored Jun 11, 2024
2 parents 56c5372 + d395886 commit af97d4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.2] - 2024-06-11
- Removed local rate limit.

## [3.1.1] - 2024-05-31
- Added `proof_of_delivery` field to Tracking Model.

Expand Down
8 changes: 0 additions & 8 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ import (
func (client *Client) makeRequest(ctx context.Context, method string, path string,
queryParams interface{}, inputData interface{}, resultData interface{}) error {

// Check if rate limit is exceeded
if client.rateLimit != nil && client.rateLimit.isExceeded() {
return &APIError{
Code: codeRateLimiting,
Message: errExceedRateLimit,
}
}

// Read input data
var body io.Reader
var bodyStr string
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package aftership

// VERSION is the version number of this package
const VERSION string = "3.1.1"
const VERSION string = "3.1.2"

0 comments on commit af97d4f

Please sign in to comment.