p2p: fix type of DiscSubprotocolError (#24747)

It was 'int' accidentally, should be DiscReason instead.
This commit is contained in:
henopied
2022-04-25 11:05:47 +02:00
committed by GitHub
parent fb801d8837
commit 63972e7548
+1 -1
View File
@@ -69,7 +69,7 @@ const (
DiscUnexpectedIdentity
DiscSelf
DiscReadTimeout
DiscSubprotocolError = 0x10
DiscSubprotocolError = DiscReason(0x10)
)
var discReasonToString = [...]string{