-
zhiqiangxu authored
This improves readability of function 'push'. sort.Search(N, ...) will at most return N when no match, so ix should be compared with N. The previous version would compare ix with N+1 in case an additional item was appended. No bug resulted from this comparison, but it's not easy to understand why. Co-authored-by:
Felix Lange <fjl@twurst.com>
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
discover | Loading commit data... | |
dnsdisc | ||
enode | ||
enr | ||
msgrate | ||
nat | ||
netutil | ||
nodestate | ||
rlpx | ||
simulations | ||
tracker | ||
dial.go | ||
dial_test.go | ||
message.go | ||
message_test.go | ||
metrics.go | ||
peer.go | ||
peer_error.go | ||
peer_test.go | ||
protocol.go | ||
server.go | ||
server_test.go | ||
transport.go | ||
transport_test.go | ||
util.go | ||
util_test.go |