-
Notifications
You must be signed in to change notification settings - Fork 12
Fix empty dispatching delivery #1353
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
@armiol @alexander-yevsyukov PTAL. |
Codecov Report
@@ Coverage Diff @@
## master #1353 +/- ##
============================================
- Coverage 91.02% 91.01% -0.01%
- Complexity 4765 4771 +6
============================================
Files 614 614
Lines 15135 15137 +2
Branches 858 858
============================================
+ Hits 13776 13777 +1
Misses 1087 1087
- Partials 272 273 +1 |
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.
Elegantly solved! LGTM
/** | ||
* Ignores temperature changes outside its own range. | ||
*/ | ||
public final class SafeThermometer extends Aggregate<ThermometerId, Thermometer, Thermometer.Builder> { |
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.
Грядущими морозами навеяло? ;)
This PR fixes #1352.
The root cause of the issue was using
hasProducedEvents
method which actually is just checking that theProducedEvents
message is set, but does not check if there are any events inside.