mirror of
https://github.com/friendica/friendica
synced 2025-04-29 05:44:22 +02:00
Replace Lock::release() with DI::lock()->release() and remove Core\Lock
This commit is contained in:
parent
634e657d23
commit
31457b8566
14 changed files with 33 additions and 74 deletions
|
@ -66,7 +66,7 @@ class CacheLock extends Lock
|
|||
/**
|
||||
* (@inheritdoc)
|
||||
*/
|
||||
public function releaseLock($key, $override = false)
|
||||
public function release($key, $override = false)
|
||||
{
|
||||
$cachekey = self::getLockKey($key);
|
||||
|
||||
|
@ -122,7 +122,7 @@ class CacheLock extends Lock
|
|||
$locks = $this->getLocks();
|
||||
|
||||
foreach ($locks as $lock) {
|
||||
if (!$this->releaseLock($lock, $override)) {
|
||||
if (!$this->release($lock, $override)) {
|
||||
$success = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue