Skip to content

Commit

Permalink
Pass cooldown callback to next()
Browse files Browse the repository at this point in the history
  • Loading branch information
zgrguric committed Dec 3, 2022
1 parent 7eacb89 commit 7a71d98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Api/AbstractMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ public function next(): ?AbstractMethod
$params['marker'] = $this->result->result->marker;
$nextMethod = $this->client->api($this->method)->params($params);

if($this->cooldown_callback !== null) {
$nextMethod->setCooldownHandler($this->cooldown_callback);
}

return $nextMethod;
}

Expand Down

0 comments on commit 7a71d98

Please sign in to comment.