File tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Messenger/Transport/RedisExt
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function get(): ?array
89
89
} catch (\RedisException $ e ) {
90
90
}
91
91
92
- if ($ e || ( false === $ messages) ) {
92
+ if ($ e || false === $ messages ) {
93
93
throw new TransportException (
94
94
($ e ? $ e ->getMessage () : $ this ->connection ->getLastError ()) ?? 'Could not read messages from the redis stream. '
95
95
);
@@ -132,8 +132,8 @@ public function reject(string $id): void
132
132
{
133
133
$ e = null ;
134
134
try {
135
- // $deleted = $this->connection->xack($this->stream, $this->group, [$id]);
136
- $ deleted = $ this ->connection ->xdel ($ this ->stream , [$ id ]);
135
+ $ deleted = $ this ->connection ->xack ($ this ->stream , $ this ->group , [$ id ]);
136
+ $ deleted = $ this ->connection ->xdel ($ this ->stream , [$ id ]) && $ deleted ;
137
137
} catch (\RedisException $ e ) {
138
138
}
139
139
You can’t perform that action at this time.
0 commit comments