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

Update go support to 1.20+1.21 #628

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Update go support to 1.20+1.21 #628

merged 1 commit into from
Sep 11, 2023

Conversation

fishy
Copy link
Member

@fishy fishy commented Sep 8, 2023

Also upgrade thrift to 0.19.0.

Also deprecate errorsbp.Batch.

@fishy fishy requested a review from a team as a code owner September 8, 2023 19:13
@fishy fishy requested review from konradreiche and removed request for a team September 8, 2023 19:13
Comment on lines +776 to +777
errorsbp.Prefix("read fully", err),
errorsbp.Prefix("close", r.Close()),
Copy link
Contributor

Choose a reason for hiding this comment

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

ooc, why do we still need to use errorsbp here?

Copy link
Member Author

Choose a reason for hiding this comment

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

see d939c53

if !errors.Is(batchErr, err) {
t.Errorf("%v is not wrapped by %v", err, batchErr)
}
if got, want := errorsbp.BatchSize(err), len(errList); got != want {
Copy link
Contributor

Choose a reason for hiding this comment

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

is there something we can/should replace errorsbp.BatchSize with?

Copy link
Member Author

Choose a reason for hiding this comment

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

see 1edc07c

basically it's much easier to use than handle a few different cases yourself (check nil, check not a batch error, then try to unwrap to a batch and get the size).

Also upgrade thrift to 0.19.0.

Also deprecate errorsbp.Batch.
@fishy fishy merged commit c57a8d9 into reddit:master Sep 11, 2023
2 checks passed
@fishy fishy deleted the go-1.21 branch September 11, 2023 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants