From 600c44e764d77b0b88329b12b28367827db2c6f5 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 16 Apr 2021 13:36:16 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Akolzin Dmitry --- Messenger/Middleware/LockableMessageMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Messenger/Middleware/LockableMessageMiddleware.php b/Messenger/Middleware/LockableMessageMiddleware.php index e6e4c39..0718567 100644 --- a/Messenger/Middleware/LockableMessageMiddleware.php +++ b/Messenger/Middleware/LockableMessageMiddleware.php @@ -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; }