1
0
Fork 0
mirror of synced 2025-04-05 06:03:34 +03:00

Apply suggestions from code review

Co-authored-by: Akolzin Dmitry <iyzoer@users.noreply.github.com>
This commit is contained in:
Alex Lushpai 2021-04-16 13:36:16 +03:00 committed by GitHub
parent e07c4809a4
commit 600c44e764
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}