AK
Size: a a a
AK
VT
VS
AK
VT
VS
AK
VT
AK
AK
VT
AY
DZ
AY
DZ
private function retry(callable $callback, $maxRetryCount =
INF, $retryCount = 0)
{
try {
return $callback();
} catch (\Throwable $e) {
$this->closeConnection();
if($retryCount < $maxRetryCount) {
Log::error(
sprintf('Recreating connection #%d (%s - %s)', $retryCount,
get_class($e), $e->getMessage()));
$this->connection = $this->createConnection();
return $this->retry($callback, $maxRetryCount, ++$retryCount);
}
throw $e;
}
}
DZ
AK
private function retry(callable $callback, $maxRetryCount =
INF, $retryCount = 0)
{
try {
return $callback();
} catch (\Throwable $e) {
$this->closeConnection();
if($retryCount < $maxRetryCount) {
Log::error(
sprintf('Recreating connection #%d (%s - %s)', $retryCount,
get_class($e), $e->getMessage()));
$this->connection = $this->createConnection();
return $this->retry($callback, $maxRetryCount, ++$retryCount);
}
throw $e;
}
}
AY
private function retry(callable $callback, $maxRetryCount =
INF, $retryCount = 0)
{
try {
return $callback();
} catch (\Throwable $e) {
$this->closeConnection();
if($retryCount < $maxRetryCount) {
Log::error(
sprintf('Recreating connection #%d (%s - %s)', $retryCount,
get_class($e), $e->getMessage()));
$this->connection = $this->createConnection();
return $this->retry($callback, $maxRetryCount, ++$retryCount);
}
throw $e;
}
}
DZ
AK