summaryrefslogtreecommitdiffstats
path: root/src/repository/repository.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repository/repository.rs')
-rw-r--r--src/repository/repository.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/repository/repository.rs b/src/repository/repository.rs
index 5ed1244..7386ba4 100644
--- a/src/repository/repository.rs
+++ b/src/repository/repository.rs
@@ -36,6 +36,12 @@ impl Repository {
TypedClientFassade::new(host, port).map(Repository)
}
+ pub fn get_raw_bytes<H>(&self, hash: H) -> impl Future<Item = Vec<u8>, Error = Error>
+ where H: AsRef<IPFSHash>
+ {
+ self.0.get_raw_bytes(hash)
+ }
+
pub fn get_block<H>(&self, hash: H) -> impl Future<Item = Block, Error = Error>
where H: AsRef<IPFSHash>
{