p2p: fix type of DiscSubprotocolError (#24747)

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