We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd56697 commit 5afc82dCopy full SHA for 5afc82d
p2p/peer_error.go
@@ -89,7 +89,7 @@ var discReasonToString = [...]string{
89
}
90
91
func (d DiscReason) String() string {
92
- if len(discReasonToString) < int(d) {
+ if len(discReasonToString) <= int(d) {
93
return fmt.Sprintf("unknown disconnect reason %d", d)
94
95
return discReasonToString[d]
0 commit comments