Commit 2f0cb21
committed
issue #10: fix crash when acking messages on normal queues
The `ack` callback was expecting the ack tags to be always
encapsulated within a `dqack` record which was not the case.
Several callbacks, in fact, delegate their logic to the passthrough
functions which do not handle the returned values but just the queue
state.
This patch simplifies the `ack` logic dealing with `dqacks` only when
the queue is a deduplication queue and acknowledgement is enabled by
the channels. For all the other cases, it falls back to the passthrough
logic.
Signed-off-by: Matteo Cafasso <[email protected]>1 parent 7096c36 commit 2f0cb21
1 file changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
275 | 274 | | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments