Skip to content

Commit

Permalink
Update LockService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Feb 5, 2023
1 parent 77a6bc1 commit 3a66b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/Service/LockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(CacheManager $cacheManager, ConfigRepository $config
public function block(string $key, callable $callback): mixed
{
return $this->getLockProvider()
->lock($key)
->lock($key, $this->seconds)
->block($this->seconds, $callback)
;
}
Expand Down

0 comments on commit 3a66b2c

Please sign in to comment.