Skip to content

Conversation

@MichaelGrupp
Copy link
Member

No description provided.

return
[unrecoverable_codes](int failed_attempts, const ::grpc::Status &status) {
return unrecoverable_codes.count(status.error_code()) <= 0;
return !unrecoverable_codes.count(status.error_code());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this because it didn't make sense, count() returns either 1 or 0 for a set.

We can change it to count == 0 if you prefer that style.

@MichaelGrupp
Copy link
Member Author

@cschuet This is open since a while, should we merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants