@@ -110,8 +110,7 @@ |
||
| 110 | 110 | $this->_logger->info('Retrying instance {instanceName} during next cycle', [ |
| 111 | 111 | 'instanceName' => $instance->getName(), |
| 112 | 112 | ]); |
| 113 | - } |
|
| 114 | - else |
|
| 113 | + } else |
|
| 115 | 114 | $instanceState->incrementRetryCount(); |
| 116 | 115 | } |
| 117 | 116 | |
@@ -225,14 +225,12 @@ |
||
| 225 | 225 | |
| 226 | 226 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_REACHABLE, |
| 227 | 227 | new InstanceStateEvent($instance)); |
| 228 | - } |
|
| 229 | - catch (\Exception $e) |
|
| 228 | + } catch (\Exception $e) |
|
| 230 | 229 | { |
| 231 | 230 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_UNREACHABLE, |
| 232 | 231 | new InstanceStateEvent($instance)); |
| 233 | 232 | } |
| 234 | - } |
|
| 235 | - else |
|
| 233 | + } else |
|
| 236 | 234 | { |
| 237 | 235 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_MAYBE_REACHABLE, |
| 238 | 236 | new InstanceStateEvent($instance)); |