IPFS - handle change in API catReadableStream is on ipfs now, not ipfs.files

This commit is contained in:
Mitra Ardron 2019-02-22 18:45:23 +11:00
parent 1ecc34bba7
commit c2af9e6864

View File

@ -461,7 +461,7 @@ class TransportIPFS extends Transport {
//let fakehash="QmedXJYwvNSJFRMVFuJt7BfCMcJwPoqJgqN3U2MYxHET5a" //let fakehash="QmedXJYwvNSJFRMVFuJt7BfCMcJwPoqJgqN3U2MYxHET5a"
//console.log("XXX@IPFS.p_f_createReadStream faking call to",multihash, "with", fakehash) //console.log("XXX@IPFS.p_f_createReadStream faking call to",multihash, "with", fakehash)
//multihash=fakehash; //multihash=fakehash;
stream = self.ipfs.files.catReadableStream(multihash, { stream = self.ipfs.catReadableStream(multihash, {
offset: start, offset: start,
length: end && end - start length: end && end - start
}); });