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 f9fa790 commit 0e00e0c
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 @@ -30,7 +30,7 @@ public function __construct(
/** @throws LockProviderNotFoundException */
public function block(string $key, callable $callback)
{
return $this->getLockProvider()->lock($key)
return $this->getLockProvider()->lock($key, $this->seconds)
->block($this->seconds, $callback)
;
}
Expand Down

0 comments on commit 0e00e0c

Please sign in to comment.