mirror of
https://github.com/fluencelabs/dweb-transports
synced 2025-05-28 14:01:19 +00:00
* 0.1.55: tweaking queue concurrency
This commit is contained in:
parent
5811c95eeb
commit
0a673fc270
@ -126,6 +126,7 @@ See [Dweb document index](./DOCUMENTINDEX.md) for a list of the repos that make
|
|||||||
|
|
||||||
### Release Notes
|
### Release Notes
|
||||||
|
|
||||||
|
* 0.1.55: tweaking queue concurrency
|
||||||
* 0.1.54: queue for http; disable fallback from IPFS to http://ipfs.io
|
* 0.1.54: queue for http; disable fallback from IPFS to http://ipfs.io
|
||||||
* 0.1.53: Reenable Wolk as fixed
|
* 0.1.53: Reenable Wolk as fixed
|
||||||
* 0.1.52: Gun fixes but off by default https://github.com/internetarchive/dweb-archive/issues/106
|
* 0.1.52: Gun fixes but off by default https://github.com/internetarchive/dweb-archive/issues/106
|
||||||
|
2
dist/dweb-transports-bundle.js
vendored
2
dist/dweb-transports-bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -36,8 +36,9 @@ function queueSetup({concurrency}) {
|
|||||||
task.cb(null, res);
|
task.cb(null, res);
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
//TODO-QUEUE add loopguard back in
|
// Adjust concurrency, dont go below running number (which is running-1 because this failed task counts)
|
||||||
httpTaskQueue.concurrency = Math.max(httpTaskQueue.concurrency-1, 6)
|
// and we know browser doesnt complain below 6
|
||||||
|
httpTaskQueue.concurrency = Math.max(httpTaskQueue.concurrency-1, 6, httpTaskQueue.running()-1);
|
||||||
debug("Dropping concurrency to %s", httpTaskQueue.concurrency);
|
debug("Dropping concurrency to %s", httpTaskQueue.concurrency);
|
||||||
cb(err);
|
cb(err);
|
||||||
if (--task.count > 0) {
|
if (--task.count > 0) {
|
||||||
|
@ -53,5 +53,5 @@
|
|||||||
"test": "cd src; node ./test.js",
|
"test": "cd src; node ./test.js",
|
||||||
"help": "echo 'test (test it)'; echo 'build (creates dweb-transports-bundle)'"
|
"help": "echo 'test (test it)'; echo 'build (creates dweb-transports-bundle)'"
|
||||||
},
|
},
|
||||||
"version": "0.1.54"
|
"version": "0.1.55"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user