Apply suggestions from code review
Co-authored-by: Akolzin Dmitry <iyzoer@users.noreply.github.com>
This commit is contained in:
parent
e07c4809a4
commit
600c44e764
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class LockableMessageMiddleware implements MiddlewareInterface
|
|||
$message = $envelope->getMessage();
|
||||
|
||||
if ($envelope->all(ReceivedStamp::class) && $message instanceof LockableMessage) {
|
||||
$lock = $this->lockFactory->createLock($this->hash($message), null);
|
||||
$lock = $this->lockFactory->createLock($this->objectHash($message), null);
|
||||
if (!$lock->acquire()) {
|
||||
return $envelope;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue