mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 09:11:34 +00:00
Improve nodes state (#917)
* Improve the state consistency in src/nodes * Add a user data parameter to tasks * Remove the tasks HashMap in CollectionStream * Add TODO
This commit is contained in:
@ -107,7 +107,6 @@ fn accepting_a_node_yields_new_entry() {
|
||||
}
|
||||
2 => {
|
||||
assert_matches!(event, Async::Ready(CollectionEvent::NodeReached(reach_ev)) => {
|
||||
assert_matches!(reach_ev.parent, CollectionStream{..});
|
||||
let (accept_ev, accepted_peer_id) = reach_ev.accept();
|
||||
assert_eq!(accepted_peer_id, peer_id);
|
||||
assert_matches!(accept_ev, CollectionNodeAccept::NewEntry);
|
||||
|
Reference in New Issue
Block a user