mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Merge pull request #8071 from nupplaphil/task/Lock_to_lock
Replace Core\Lock wrapper with DI::lock() method
This commit is contained in:
commit
f67f398fe1
15 changed files with 75 additions and 130 deletions
|
@ -539,9 +539,9 @@ class OStatus
|
|||
Logger::log("Item with uri ".$item["uri"]." is from a blocked contact.", Logger::DEBUG);
|
||||
} else {
|
||||
// We are having duplicated entries. Hopefully this solves it.
|
||||
if (Lock::acquire('ostatus_process_item_insert')) {
|
||||
if (DI::lock()->acquire('ostatus_process_item_insert')) {
|
||||
$ret = Item::insert($item);
|
||||
Lock::release('ostatus_process_item_insert');
|
||||
DI::lock()->release('ostatus_process_item_insert');
|
||||
Logger::log("Item with uri ".$item["uri"]." for user ".$importer["uid"].' stored. Return value: '.$ret);
|
||||
} else {
|
||||
$ret = Item::insert($item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue