Merge of #116 and #111 (#117)

* Implement ConnectionReuse correctly

* Add some tests and fixes

* Remove useless boolean in active_connections

* Correctly run tests

* Optimize the processing

* Next incoming is now in two steps

* Remove log

* Fix dialing a node even if we already have a connection

* Add a proper PeerId to Peerstore

* Turn identify into a transport layer

* Expose the dialed multiaddress

* Add identified nodes to the peerstore

* Allow configuring the TTL of the addresses

* Split identify in two modules

* Some comments and tweaks

* Run rustfmt

* Add test and bugfix

* Fix wrong address reported when dialing

* Fix websocket browser code

* Ignore errors in the swarm

* Fix multiplex test

* Fix some style concerns

* Fix concerns
This commit is contained in:
Pierre Krieger
2018-03-07 11:51:52 +01:00
committed by GitHub
parent 39dde305b4
commit 22a7159c41
7 changed files with 496 additions and 167 deletions

View File

@ -203,6 +203,7 @@
//! ```
extern crate bytes;
extern crate fnv;
#[macro_use]
extern crate futures;
extern crate multistream_select;