Add libp2p transport - tcp/ws/secio and multiplexing.

This commit is contained in:
Age Manning
2019-03-06 23:31:08 +11:00
parent b68adc1ae3
commit ac639c6427
8 changed files with 108 additions and 49 deletions

View File

@@ -30,10 +30,9 @@ impl Service {
// launch libp2p service
let libp2p_log = log.new(o!("Service" => "Libp2p"));
let libp2p_service = LibP2PService::new(libp2p_log);
let libp2p_service = LibP2PService::new(config, libp2p_log);
// TODO: Spawn thread to handle libp2p messages and pass to message handler thread.
let network = Service {};
Ok((Arc::new(network), network_send))