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
89
89
} catch (\RedisException $ e ) {
90
90
}
91
91
92
- if ($ e || ( false === $ messages && ! $ this -> couldHavePendingMessages ) ) {
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,7 +132,8 @@ public function reject(string $id): void
132
132
{
133
133
$ e = null ;
134
134
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 ;
136
137
} catch (\RedisException $ e ) {
137
138
}
138
139
You can’t perform that action at this time.
0 commit comments