From 0e00e0c1e5f15d2a575d7daf7b12d341b334ebcc Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Sun, 5 Feb 2023 17:06:04 +0300 Subject: [PATCH] Update LockService.php --- src/Internal/Service/LockService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Internal/Service/LockService.php b/src/Internal/Service/LockService.php index adacaceb9..1f45ad3eb 100644 --- a/src/Internal/Service/LockService.php +++ b/src/Internal/Service/LockService.php @@ -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) ; }