mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 06:41:34 +00:00
Rework libp2p-identify (#116)
* 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 * Support the p2p protocol in libp2p-identify * Fix concerns * Fix libp2p-dns * More concerns
This commit is contained in:
@ -99,7 +99,7 @@ fn main() {
|
||||
// We now use the controller to dial to the address.
|
||||
let (finished_tx, finished_rx) = oneshot::channel();
|
||||
swarm_controller
|
||||
.dial_custom_handler(target_addr.parse().expect("invalid multiaddr"), proto, |echo| {
|
||||
.dial_custom_handler(target_addr.parse().expect("invalid multiaddr"), proto, |echo, _| {
|
||||
// `echo` is what the closure used when initializing `proto` returns.
|
||||
// Consequently, please note that the `send` method is available only because the type
|
||||
// `length_delimited::Framed` has a `send` method.
|
||||
|
Reference in New Issue
Block a user