Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 9, 2021
1 parent 0bc4977 commit bd490fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Redis/Limiters/DurationLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function acquire()
public function tooManyAttempts()
{
[$this->decaysAt, $this->remaining] = $this->redis->eval(
$this->tooManyAttemptsScript(), 1, $this->name, microtime(true), time(), $this->decay, $this->maxLocks
$this->tooManyAttemptsLuaScript(), 1, $this->name, microtime(true), time(), $this->decay, $this->maxLocks
);

return $this->remaining <= 0;
Expand Down Expand Up @@ -181,7 +181,7 @@ protected function luaScript()
*
* @return string
*/
protected function tooManyAttemptsScript()
protected function tooManyAttemptsLuaScript()
{
return <<<'LUA'
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Queue/ThrottlesExceptionsWithRedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function handle()

public function middleware()
{
return [new ThrottlesExceptionsWithRedis(2, 10, 0, $this->key)];
return [(new ThrottlesExceptionsWithRedis(2, 10))->by($this->key)];
}
}

Expand All @@ -162,6 +162,6 @@ public function handle()

public function middleware()
{
return [new ThrottlesExceptionsWithRedis(2, 10, 0, $this->key)];
return [(new ThrottlesExceptionsWithRedis(2, 10))->by($this->key)];
}
}

0 comments on commit bd490fe

Please sign in to comment.