Unverified Commit 63972e75 authored by henopied's avatar henopied Committed by GitHub

p2p: fix type of DiscSubprotocolError (#24747)

It was 'int' accidentally, should be DiscReason instead.
parent fb801d88
...@@ -69,7 +69,7 @@ const ( ...@@ -69,7 +69,7 @@ const (
DiscUnexpectedIdentity DiscUnexpectedIdentity
DiscSelf DiscSelf
DiscReadTimeout DiscReadTimeout
DiscSubprotocolError = 0x10 DiscSubprotocolError = DiscReason(0x10)
) )
var discReasonToString = [...]string{ var discReasonToString = [...]string{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment