p2p/discover: fix bug in `checkNodesEqual`
This commit is contained in:
parent
171430c3f5
commit
56cafb22ca
|
@ -241,6 +241,8 @@ func checkNodesEqual(got, want []*enode.Node) error {
|
|||
goto NotEqual
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("length dismatch: got %d nodes, want %d nodes", len(got), len(want))
|
||||
}
|
||||
return nil
|
||||
|
||||
|
|
Loading…
Reference in New Issue