Fix semaphore implementation for only doing 10 concurrent fetches at a time

This commit is contained in:
Mathias Biilmann Christensen
2016-09-04 20:55:05 +02:00
parent 2980ba8565
commit 964e158a5f
3 changed files with 15 additions and 8 deletions

View File

@ -49,6 +49,7 @@ class Backend {
entries(collection, page, perPage) {
return this.implementation.entries(collection, page, perPage).then((response) => {
console.log("Got %s entries", response.entries.length);
return {
pagination: response.pagination,
entries: response.entries.map(this.entryWithFormat(collection))