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

core/txpool: remove use of errors.Join function #27523

Merged
merged 2 commits into from
Jun 20, 2023
Merged

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Jun 20, 2023

This function was added in Go 1.20, but our compatibility target is Go 1.19.

This function was added in Go 1.20, but our compatibility target
is Go 1.19.
}
return errors.Join(errs...)
return nil
}
Copy link
Member

Choose a reason for hiding this comment

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

You are losing/ignoring the error from line 91.

Copy link
Member

Choose a reason for hiding this comment

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

My 2c is that anyErr seems very convoluted, just check for len(errs) == 0 (and omit pushing nil into it in line 91).

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

SGTM

@fjl fjl merged commit 1affc1c into ethereum:master Jun 20, 2023
@fjl fjl added this to the 1.12.1 milestone Jun 20, 2023
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
his function was added in Go 1.20, but our compatibility target
is Go 1.19.
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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