mirror of
https://github.com/linuxserver/emulatorjs.git
synced 2026-01-09 07:21:24 +08:00
double the ipfs timeout to facilitate larger files
This commit is contained in:
parent
b387fb9cc3
commit
557f22224e
2
index.js
2
index.js
@ -222,7 +222,7 @@ io.on('connection', async function (socket) {
|
||||
let writeStream = fs.createWriteStream(file);
|
||||
socket.emit('modaldata', 'Downloading: ' + file);
|
||||
try {
|
||||
for await (var fileStream of ipfs.cat(cid, {'timeout': 10000})) {
|
||||
for await (var fileStream of ipfs.cat(cid, {'timeout': 20000})) {
|
||||
writeStream.write(fileStream);
|
||||
};
|
||||
writeStream.end();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user