Skip to content

Commit

Permalink
p2p: fix type of DiscSubprotocolError (#24747)
Browse files Browse the repository at this point in the history
It was 'int' accidentally, should be DiscReason instead.
  • Loading branch information
henopied authored Apr 25, 2022
1 parent fb801d8 commit 63972e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/peer_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const (
DiscUnexpectedIdentity
DiscSelf
DiscReadTimeout
DiscSubprotocolError = 0x10
DiscSubprotocolError = DiscReason(0x10)
)

var discReasonToString = [...]string{
Expand Down

0 comments on commit 63972e7

Please sign in to comment.