Commit 122ed2c
committed
queue: improve
Check if the message is a duplicate only when the backing queue
`is_duplicate` returns false.
Otherwise, we might cache headers belonging to duplicate messages
generated internally by the broker.
This would, at least, pollute the cache hit statistics.
Signed-off-by: Matteo Cafasso <[email protected]>is_duplicate duplication logic1 parent 046a36a commit 122ed2c
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | 375 | | |
378 | 376 | | |
379 | | - | |
| 377 | + | |
380 | 378 | | |
381 | 379 | | |
382 | 380 | | |
| |||
0 commit comments