Patch for concurrent iterator & others (onto v1.11.6) #386
@ -89,7 +89,7 @@ var discReasonToString = [...]string{
|
||||
}
|
||||
|
||||
func (d DiscReason) String() string {
|
||||
if len(discReasonToString) < int(d) {
|
||||
if len(discReasonToString) <= int(d) {
|
||||
return fmt.Sprintf("unknown disconnect reason %d", d)
|
||||
}
|
||||
return discReasonToString[d]
|
||||
|
Loading…
Reference in New Issue
Block a user