From 75dadb51fee37579d5b02005096e0d9e7f26f87c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 18 May 2020 21:26:46 +0200 Subject: Adapt for ipfs-api changes Signed-off-by: Matthias Beyer --- src/repository/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/repository/client.rs b/src/repository/client.rs index f5917d4..4466e05 100644 --- a/src/repository/client.rs +++ b/src/repository/client.rs @@ -4,6 +4,7 @@ use std::ops::Deref; use std::result::Result as RResult; use ipfs_api::IpfsClient; +use ipfs_api::TryFromUri; use anyhow::Error; use futures::future::Future; use futures::future::FutureExt; @@ -40,7 +41,7 @@ impl std::fmt::Debug for ClientFassade { impl ClientFassade { fn new(host: &str, port: u16) -> Result { debug!("Creating new ClientFassade object: {}:{}", host, port); - IpfsClient::new(host, port) + IpfsClient::from_str(&format!("{}:{}", host, port)) .map(Arc::new) .map(|c| ClientFassade(c)) .map_err(|e| Error::from(e.compat())) -- cgit v1.2.3