Skip to content
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

chore: update list of retryable gRPC functions #595

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

nand4011
Copy link
Contributor

@nand4011 nand4011 commented Dec 4, 2024

Bring the list of retryable functions up to date.

Replace GetHashCode with a version that matched the equals method.

Fix misc warnings.

Bring the list of retryable functions up to date.

Replace GetHashCode with a version that matched the equals method.

Fix misc warnings.
@@ -37,35 +38,59 @@ public class DefaultRetryEligibilityStrategy : IRetryEligibilityStrategy
//StatusCode.DataLoss,
};

private readonly HashSet<Type> _retryableRequestTypes = new HashSet<Type>
private readonly HashSet<Type> _retryableRequestTypes = new()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Compare to the Go SDK version.

}

public override int GetHashCode()
{
return base.GetHashCode();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have several classes that use base.GetHashCode(), which violates the contract that two objects that equal each other should have the same hash code. They are mostly unimportant like this one, but we should update them when we see them.

@nand4011 nand4011 requested a review from a team December 4, 2024 23:27
@nand4011 nand4011 merged commit 274aa90 into main Dec 6, 2024
8 checks passed
@nand4011 nand4011 deleted the update-retryable-functions branch December 6, 2024 21:36
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.

2 participants