p2p: fix type of DiscSubprotocolError (#24747)

It was 'int' accidentally, should be DiscReason instead.
pull/24760/head
henopied 3 years ago committed by GitHub
parent fb801d8837
commit 63972e7548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/peer_error.go

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

Loading…
Cancel
Save