summaryrefslogtreecommitdiffstats
path: root/src/ipfs_client.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-04 17:03:09 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-04 21:16:37 +0100
commite5d610270bed47a91ecca8d51adc705bed58cda7 (patch)
tree52a5d63edbbf5f8bbf154757969877bce17c3725 /src/ipfs_client.rs
parent3a3b342a4ae5a90003b6ef9faa65ca7f0a025962 (diff)
Rewrite using "ipfs" crate
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/ipfs_client.rs')
-rw-r--r--src/ipfs_client.rs20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/ipfs_client.rs b/src/ipfs_client.rs
index 13d8bde..97af6ff 100644
--- a/src/ipfs_client.rs
+++ b/src/ipfs_client.rs
@@ -1,19 +1 @@
-pub use ipfs_api_backend_hyper as backend;
-pub type IpfsClient = backend::IpfsClient;
-
-
-#[cfg(test)]
-mod tests {
- use ipfs_api_backend_hyper::TryFromUri;
- use super::IpfsClient;
-
- #[test]
- fn test_connect_str() {
- let _ = IpfsClient::from_str("http://localhost:5001").unwrap();
- }
-
- #[test]
- fn test_connect_host_and_port() {
- let _ = IpfsClient::from_host_and_port(http::uri::Scheme::HTTP, "localhost", 5001).unwrap();
- }
-}
+pub type IpfsClient = ipfs::Ipfs<ipfs::Types>;