File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function get(): ?array
8989 } catch (\RedisException $ e ) {
9090 }
9191
92- if ($ e || ( false === $ messages && ! $ this -> couldHavePendingMessages ) ) {
92+ if ($ e || false === $ messages ) {
9393 throw new TransportException (
9494 ($ e ? $ e ->getMessage () : $ this ->connection ->getLastError ()) ?? 'Could not read messages from the redis stream. '
9595 );
@@ -132,7 +132,8 @@ public function reject(string $id): void
132132 {
133133 $ e = null ;
134134 try {
135- $ 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 ;
136137 } catch (\RedisException $ e ) {
137138 }
138139
You can’t perform that action at this time.
0 commit comments