Guanqun Lu
ee9be6f0c9
add must_use for Future ( #450 )
2018-09-04 12:30:57 +02:00
Pierre Krieger
ea881e3dfa
Rework swarm and allow interrupting a dial ( #366 )
...
* Rework swarm and allow interrupting a dial
* Improve the UniqueConnec situation
* Remove UniqueConnec::get
* Rename `get_or_dial()` to `dial()` and add `dial_if_empty()`
* Clean the UniqueConnec is the future is dropped
* Rename `set_until` to `tie_or_stop` and add `tie_or_passthrough`
* Add some tests, docs
* Fix memory leak with tasks registration
* Interrupt dialing when a UniqueConnec is dropped or cleared
2018-08-08 12:00:38 +02:00
Pierre Krieger
4592d1b21e
SwarmController::dial now returns a Future ( #290 )
...
* SwarmController::dial now returns a Future
* Minor comment
2018-07-14 13:46:11 +02:00
Pierre Krieger
c05e7e0c4e
Two minor swarm tests ( #300 )
2018-07-14 13:31:22 +02:00
Pierre Krieger
de39e321e9
Fix a missing loop in SwarmFuture::poll ( #272 )
2018-06-25 14:29:15 +02:00
Pierre Krieger
ab96f7efe0
Add loops around stream polling ( #251 )
2018-06-22 11:02:47 +02:00
Pierre Krieger
7b375798a5
The Multiaddr of the remote is now a Future ( #249 )
...
* The Multiaddr of the remote is now a Future
* The multiaddress future in swarm is now a Box
2018-06-19 14:38:55 +02:00
Pierre Krieger
be2fa0e531
Turn warn! into debug! ( #235 )
2018-06-04 15:53:58 +02:00
Pierre Krieger
e5f23c74c0
Remove dial_custom_handler ( #203 )
...
* Remove dial_custom_handler
* Rename dial_to_handler to dial
2018-05-22 18:58:27 +02:00
Toralf Wittner
250af629ee
Use loop
to poll FuturesUnordered
after push
. ( #198 )
...
Fixes #190 .
2018-05-21 16:27:03 +02:00
Toralf Wittner
86a21fc43e
Remove all target
s from log statements. ( #195 )
...
The default uses crate + module path anyway, so `target` has been
redundant, causes more work when renaming crates and makes log
lines longer.
2018-05-17 15:14:13 +02:00
Pierre Krieger
cb800624f5
Change Transport::Dial to be Future and not IntoFuture ( #193 )
2018-05-17 13:09:22 +02:00
Pierre Krieger
5c1890e66a
Rename libp2p_swarm to libp2p_core ( #189 )
2018-05-16 12:59:36 +02:00