Skip to content

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.
};

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.

3 participants