-
Notifications
You must be signed in to change notification settings - Fork 48
Filter out null failedmessages #1465
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
66a967c
to
1708473
Compare
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.
I am fine with bumping the dotnetzip dependency.
@@ -27,10 +27,9 @@ protected override async Task<IEnumerable<object>> PublishEvents(IEnumerable<Dis | |||
var failedMessages = new List<object>(failedMessageData.Length); | |||
foreach (var entity in failedMessageData) | |||
{ | |||
session.Advanced.Evict(entity); | |||
|
|||
if (entity != null) |
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.
Another option would be to add a where
clause to the list and then iterate over that but I prefer the if
approach
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.
I had that originally, but then saw the if that was in the loop already and thought it looked neater than including the where in the loop above.
* Bump zip dependency * Filter out null values
Fixes #1464
2 Commits. One to bump the zip package version (I can remove this?) and a second to filter out null failed messages.
I can't figure out how to force the expired documents to run in an acceptance test so am not sure how to add a test around this. Any suggestions?