We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb28e0 commit 29960e8Copy full SHA for 29960e8
src/Common/TransactionHelper.php
@@ -46,7 +46,7 @@ public static function retry(callable $tsxFactory, callable $tsxHandler, Transac
46
47
return $tbr;
48
} catch (Neo4jException $e) {
49
- if (microtime(true) > $limit) {
+ if (microtime(true) > $limit || !str_contains($e->getMessage(), '(Neo.ClientError.Cluster.NotALeader)')) {
50
throw $e;
51
}
52
0 commit comments