Skip to content

Commit

Permalink
Fix DurationLimiter not using Redis connection proxy to call eval com…
Browse files Browse the repository at this point in the history
…mand (#25505)
  • Loading branch information
stayallive authored and taylorotwell committed Sep 7, 2018
1 parent eaac77b commit f357804
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Redis/Limiters/DurationLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function block($timeout, $callback = null)
*/
public function acquire()
{
$results = $this->redis->command('eval', [
$this->luaScript(), 1, $this->name, microtime(true), time(), $this->decay, $this->maxLocks,
]);
$results = $this->redis->eval(
$this->luaScript(), 1, $this->name, microtime(true), time(), $this->decay, $this->maxLocks
);

$this->decaysAt = $results[1];

Expand Down

0 comments on commit f357804

Please sign in to comment.