summaryrefslogtreecommitdiffstats
path: root/ipfs-api-backend-hyper
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2021-02-23 23:25:19 -0500
committerFerris Tseng <ferristseng@fastmail.fm>2021-02-23 23:25:19 -0500
commit2263944af0da6b0b837285af78dafad765853853 (patch)
treebe35f42eb7695f5544cc787e56dc30b08e6adec7 /ipfs-api-backend-hyper
parent9c627dbfa062feb4da257810c291d69e619179a8 (diff)
add documentation
Diffstat (limited to 'ipfs-api-backend-hyper')
-rw-r--r--ipfs-api-backend-hyper/src/backend.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipfs-api-backend-hyper/src/backend.rs b/ipfs-api-backend-hyper/src/backend.rs
index a23bbd3..0798fc9 100644
--- a/ipfs-api-backend-hyper/src/backend.rs
+++ b/ipfs-api-backend-hyper/src/backend.rs
@@ -22,6 +22,9 @@ pub struct HyperBackend {
}
impl Default for HyperBackend {
+ /// Creates an `IpfsClient` connected to the endpoint specified in ~/.ipfs/api.
+ /// If not found, tries to connect to `localhost:5001`.
+ ///
fn default() -> Self {
Self::from_ipfs_config()
.unwrap_or_else(|| Self::from_host_and_port(Scheme::HTTP, "localhost", 5001).unwrap())