mirror of
https://github.com/fluencelabs/dweb-transports
synced 2025-06-30 21:21:41 +00:00
Fix CreateReadStream asychronicity
This commit is contained in:
@ -174,7 +174,7 @@ class TransportHTTP extends Transport {
|
||||
if (wanturl) {
|
||||
return url;
|
||||
} else {
|
||||
return function (opts) { return self.p_createReadStream(url, opts); };
|
||||
return function (opts) { return self.createReadStream(url, opts); };
|
||||
}
|
||||
} catch(err) {
|
||||
//Logged by Transports
|
||||
@ -183,7 +183,7 @@ class TransportHTTP extends Transport {
|
||||
}
|
||||
}
|
||||
|
||||
async createReadStream(url, opts) {
|
||||
createReadStream(url, opts) {
|
||||
/*
|
||||
The function, encapsulated and inside another function by p_f_createReadStream (see docs)
|
||||
NOTE THIS DOESNT WONT WORK FOR <VIDEO> tags, but shouldnt be using it there anyway - reports stream.on an filestream.pipe aren't functions
|
||||
|
Reference in New Issue
Block a user