Skip to content

Commit 51dae5f

Browse files
Back of somewhat slower (use back off factor of 1.5 instead of 2)
1 parent db8cdb4 commit 51dae5f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

classes/util/Loop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function execute(callable $code)
7878
break;
7979
}
8080

81-
$min = $minWait * 2 ** $i;
81+
$min = (int) $minWait * 1.5 ** $i;
8282
$max = $min * 2;
8383

8484
/*

tests/mutex/PredisMutexTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ private function getPredisConfig()
5454
return array_map(
5555
function ($redisUri) {
5656
return str_replace("redis://", "tcp://", $redisUri);
57-
}, $servers
57+
},
58+
$servers
5859
);
5960
}
6061

0 commit comments

Comments
 (0)