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

p2p: reduce the scope of dialPubkey #24385

Merged
merged 1 commit into from
Feb 14, 2022
Merged

Conversation

zhiqiangxu
Copy link
Contributor

dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to restrict its scope to the if clause.

@zhiqiangxu zhiqiangxu changed the title reduce the scope of dialPubkey p2p: reduce the scope of dialPubkey Feb 14, 2022
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@fjl fjl merged commit 6c3513c into ethereum:master Feb 14, 2022
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Feb 14, 2022
dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to
restrict its scope to the if clause.
JacekGlen pushed a commit to JacekGlen/go-ethereum that referenced this pull request May 26, 2022
dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to
restrict its scope to the if clause.
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Sep 30, 2022
dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to
restrict its scope to the if clause.
nibty pushed a commit to FairCrypto/go-ethereum that referenced this pull request Apr 10, 2024
dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to
restrict its scope to the if clause.
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