Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
stfndamjanovic committed Jan 27, 2024
1 parent 9eec825 commit c4e9deb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StateHandlers/HalfOpenStateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ public function onSucess()
/**
* @param \Exception $exception
* @return void
* @throws CircuitOpenException
*/
public function onFailure(\Exception $exception)
{
$this->breaker->openCircuit();

throw CircuitOpenException::make($this->breaker->getName());
}
}

0 comments on commit c4e9deb

Please sign in to comment.