Skip to content

Commit

Permalink
double the ipfs timeout to facilitate larger files
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Jun 7, 2024
1 parent b387fb9 commit 557f222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 557f222

Please sign in to comment.