Commit 046a36a
committed
issue #22: fix
When the queue is empty, the message is passed straight to the first
consumer to save one round trip time.
In such cases, if message acknowledgement is enabled,
the `publish_delivered` callback is called instead of `fetch`.
If de-duplication is enabled, we need to ensure a `dqack`
is returned instead of a simple acknowledgement tag.
Signed-off-by: Matteo Cafasso <[email protected]>publish_delivered callback with deduplication queue1 parent 2f98c0f commit 046a36a
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | | - | |
| 196 | + | |
195 | 197 | | |
196 | | - | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
199 | 208 | | |
200 | 209 | | |
201 | 210 | | |
| |||
0 commit comments