-
Notifications
You must be signed in to change notification settings - Fork 13
feat: nack support for udsource #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #204 +/- ##
=======================================
Coverage ? 59.14%
Complexity ? 482
=======================================
Files ? 152
Lines ? 3388
Branches ? 228
=======================================
Hits ? 2004
Misses ? 1219
Partials ? 165 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
| // send the message to the observer | ||
| observer.send(message); | ||
| observer.send(constructMessage(index)); | ||
| // keep track of the messages read and not acknowledged | ||
| messages.put(readIndex, true); | ||
| readIndex += 1; | ||
| yetToBeAcked.put(index, true); | ||
| readIndex.incrementAndGet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move Integer index = readIndex.incrementAndGet(); from L64 to L70 and remove L74?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move instead of remove Integer index = readIndex.incrementAndGet();? we still want to update the readIndex every time we process a msg right? @yhl25
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we should move, fixed.
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Closes #203