Skip to content

Commit

Permalink
returning from setRetryOnRateLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Hepler committed Feb 23, 2017
1 parent 432e1ca commit f555a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function submit($operation, array $parameters = []);
* if it encounters a rate limit error
*
* @param mixed $shouldRetry
* @return $this
*/
public function setRetryOnRateLimit($shouldRetry = false);

Expand Down
2 changes: 2 additions & 0 deletions src/OldTimeGuitarGuy/MechanicalTurk/Requester.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ public function submit($operation, array $parameters = [])
* if it encounters a rate limit error
*
* @param boolean $shouldRetry
* @return $this
*/
public function setRetryOnRateLimit($shouldRetry)
{
$this->retryOnRateLimit = $shouldRetry;
return $this;
}

/**
Expand Down

0 comments on commit f555a1f

Please sign in to comment.