Skip to content

Commit

Permalink
Removed unnecessary doOnNext from Client
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwdan committed Dec 21, 2016
1 parent 44ae67d commit 85a8b52
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ public function _reconnect(Observable $attempts)
$maxRetries = 150;

return $attempts
->doOnNext(function(){

})
->flatMap(function (\Exception $ex) use ($maxRetryDelay, $retryDelayGrowth, $initialRetryDelay) {
$delay = min($maxRetryDelay, pow($retryDelayGrowth, ++$this->currentRetryCount) + $initialRetryDelay);
$seconds = number_format((float)$delay / 1000, 3, '.', '');;
Expand Down

0 comments on commit 85a8b52

Please sign in to comment.