mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-25 11:02:12 +00:00
* Fix status updates in KBuckets. `KBucket::update` does currently not correctly update the `first_connected_pos` before reinserting the node. This may result in connected nodes being considered disconnected and thus eligible for replacement by a pending node if the bucket is full and a new connected node is added. Tests have been added for checking that `KBucket::update` preserves the status and ordering of all other nodes in the bucket. * Small test improvement. Set an expectation for the new position, instead of taking the assigned position.