Skip to content

Commit

Permalink
Lets not pass EnableCache to Trello :)
Browse files Browse the repository at this point in the history
  • Loading branch information
TJM committed Nov 16, 2020
1 parent a9163e2 commit 7ae07ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Expand Up @@ -79,6 +79,7 @@ func (c *Client) Get(path string, args Arguments, target interface{}) error {
// Trello prohibits more than 10 seconds/second per token
c.Throttle()

delete(args, "EnableCache")
params := args.ToURLValues()
c.log("[trello] GET %s?%s", path, params.Encode())

Expand Down Expand Up @@ -111,6 +112,7 @@ func (c *Client) Put(path string, args Arguments, target interface{}) error {
// Trello prohibits more than 10 seconds/second per token
c.Throttle()

delete(args, "EnableCache")
params := args.ToURLValues()
c.log("[trello] PUT %s?%s", path, params.Encode())

Expand Down Expand Up @@ -142,6 +144,7 @@ func (c *Client) Post(path string, args Arguments, target interface{}) error {
// Trello prohibits more than 10 seconds/second per token
c.Throttle()

delete(args, "EnableCache")
params := args.ToURLValues()
c.log("[trello] POST %s?%s", path, params.Encode())

Expand Down Expand Up @@ -172,6 +175,7 @@ func (c *Client) Delete(path string, args Arguments, target interface{}) error {

c.Throttle()

delete(args, "EnableCache")
params := args.ToURLValues()
c.log("[trello] DELETE %s?%s", path, params.Encode())

Expand Down

0 comments on commit 7ae07ad

Please sign in to comment.