Skip to content

Commit

Permalink
Back of somewhat slower (use back off factor of 1.5 instead of 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
willemstuursma committed May 26, 2018
1 parent db8cdb4 commit 51dae5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/util/Loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function execute(callable $code)
break;
}

$min = $minWait * 2 ** $i;
$min = (int) $minWait * 1.5 ** $i;
$max = $min * 2;

/*
Expand Down
3 changes: 2 additions & 1 deletion tests/mutex/PredisMutexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ private function getPredisConfig()
return array_map(
function ($redisUri) {
return str_replace("redis://", "tcp://", $redisUri);
}, $servers
},
$servers
);
}

Expand Down

0 comments on commit 51dae5f

Please sign in to comment.