summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-11-27 11:46:05 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-11-27 11:46:05 +0100
commit3e3e89c78196410228f2d0fdfc6554a05c114779 (patch)
tree259f4e3dc8055a2a78fb5de7cad2c17cd26d2f8a /src
parent3442920b3f5b53fb04ceb82d12506249a746480e (diff)
Remove test block
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r--src/client.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client.rs b/src/client.rs
index edc53c4..0225488 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -29,7 +29,7 @@ impl Client {
}
}
- async fn post_text_blob_impl(&self, text: String) -> Result<Cid> {
+ pub async fn post_text_blob(&self, text: String) -> Result<Cid> {
let reader = Cursor::new(text);
self.ipfs
@@ -41,13 +41,6 @@ impl Client {
}
#[cfg(test)]
-impl Client {
- pub async fn post_text_blob(&self, text: String) -> Result<Cid> {
- self.post_text_blob_impl(text).await
- }
-}
-
-#[cfg(test)]
mod tests {
use ipfs_api_backend_hyper::TryFromUri;
use crate::client::Client;