From e6766bac8f33a47a970d1b20fbe25401dfeac2af Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 25 Jan 2024 09:49:40 +0100 Subject: [PATCH] :sparkles: Set correct order of filtering teams on migration function --- backend/src/app/srepl/components_v2.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/srepl/components_v2.clj b/backend/src/app/srepl/components_v2.clj index e972f7796..5e6a697bb 100644 --- a/backend/src/app/srepl/components_v2.clj +++ b/backend/src/app/srepl/components_v2.clj @@ -356,13 +356,13 @@ (run! process-team (->> (get-teams conn query pred) - (take max-items) (filter (fn [team-id] (if (int? partitions) (= current-partition (-> (uuid/hash-int team-id) (mod partitions) (inc))) - true))))) + true))) + (take max-items))) ;; Close and await tasks (pu/close! executor)))