QubitProducts / gcs-browser-upload

Resumable chunked uploads to Google Cloud Storage from the browser
MIT License
84 stars 47 forks source link

Fix memory leak by not awaiting processIndex recursively #23

Closed dragly closed 4 years ago

dragly commented 4 years ago

By returning the next call, we return a promise instead of awaiting it ourselves. If we await it, we will retain memory from our own request until all other requests has completed.

Fixes QubitProducts/gcs-browser-upload#4

Co-authored-by: Fredrik Østrem fredrik.ostrem@cognite.com Co-authored-by: Michael Susæg michael.susag@cognite.com

oliverwoodings commented 4 years ago

Thanks very much for this, much appreciated!