Explorar o código

lilith: API fix.

parazyd %!s(int64=3) %!d(string=hai) anos
pai
achega
c374b796e5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bin/lilith/src/main.rs

+ 2 - 2
bin/lilith/src/main.rs

@@ -157,8 +157,8 @@ impl Lilith {
 
                     let connector = Connector::new(p2p_.settings(), Arc::new(session_weak));
                     debug!("Connecting to {}", host);
-                    match connector.connect(host.clone()).await {
-                        Ok(channel) => {
+                    match connector.connect(&host).await {
+                        Ok((_url, channel)) => {
                             debug!("Connected successfully!");
                             let proto_ver = ProtocolVersion::new(
                                 channel.clone(),