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

tests/fuzzers: fix go vet warning about signature of ReadByte #23380

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

baptiste-b-pegasys
Copy link
Contributor

go vet show a signature warning

go vet ./...
# github.com/ethereum/go-ethereum/cmd/devp2p/internal/ethtest
cmd/devp2p/internal/ethtest/chain.go:42:17: method WriteTo(writer io.Writer) error should have signature WriteTo(io.Writer) (int64, error)

I propose to fix that by making the function private.

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 added this to the 1.10.9 milestone Aug 24, 2021
@fjl fjl changed the title tests/fuzzers: fix: go vet warning signature tests/fuzzers: fix go vet warning about signature of ReadByte Aug 24, 2021
@fjl fjl merged commit 5cee33e into ethereum:master Aug 24, 2021
@fjl fjl removed the pr:merge label Aug 24, 2021
sidhujag pushed a commit to sidhujag/go-ethereum that referenced this pull request Aug 24, 2021
yongjun925 pushed a commit to DODOEX/go-ethereum that referenced this pull request Dec 3, 2022
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.

4 participants