p2p: fix type of DiscSubprotocolError (#24747)

It was 'int' accidentally, should be DiscReason instead.
This commit is contained in:
henopied 2022-04-25 04:05:47 -05:00 committed by GitHub
parent fb801d8837
commit 63972e7548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ const (
DiscUnexpectedIdentity
DiscSelf
DiscReadTimeout
DiscSubprotocolError = 0x10
DiscSubprotocolError = DiscReason(0x10)
)
var discReasonToString = [...]string{