From 231256104113f6f5215c927b6d2de43222647aaf Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 10 Feb 2022 01:09:53 +0100 Subject: [PATCH] :sparkles: Temporaly disable parallel uploading of files on import --- frontend/src/app/worker/import.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/worker/import.cljs b/frontend/src/app/worker/import.cljs index b337f0e8b..4f269dcc4 100644 --- a/frontend/src/app/worker/import.cljs +++ b/frontend/src/app/worker/import.cljs @@ -342,7 +342,10 @@ pre-process-images (->> (rx/from nodes) (rx/filter media-node?) - (rx/merge-map + ;; TODO: this should be merge-map, but we disable the + ;; parallel upload until we resolve resource usage issues + ;; on backend. + (rx/mapcat (fn [node] (->> (resolve-media context file-id node) (rx/map (fn [result] [node result])))))