From f357804f1650a3cad37b918ac4a31dd074ab71bc Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Fri, 7 Sep 2018 16:35:34 +0300 Subject: [PATCH] Fix DurationLimiter not using Redis connection proxy to call eval command (#25505) --- src/Illuminate/Redis/Limiters/DurationLimiter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Redis/Limiters/DurationLimiter.php b/src/Illuminate/Redis/Limiters/DurationLimiter.php index 0cd555217145..55e506b24ff8 100644 --- a/src/Illuminate/Redis/Limiters/DurationLimiter.php +++ b/src/Illuminate/Redis/Limiters/DurationLimiter.php @@ -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];