Use penpot own executor for s3 response completion executor

This commit is contained in:
Andrey Antukh 2024-10-26 14:43:29 +02:00
parent 7772ac0a85
commit f8c7f84c18

View file

@ -186,9 +186,8 @@
(Region/of (name region))) (Region/of (name region)))
(defn- build-s3-client (defn- build-s3-client
[{:keys [::region ::endpoint ::io-threads]}] [{:keys [::region ::endpoint ::io-threads ::wrk/executor]}]
(let [executor (px/resolve-executor :virtual) (let [aconfig (-> (ClientAsyncConfiguration/builder)
aconfig (-> (ClientAsyncConfiguration/builder)
(.advancedOption SdkAdvancedAsyncClientOption/FUTURE_COMPLETION_EXECUTOR executor) (.advancedOption SdkAdvancedAsyncClientOption/FUTURE_COMPLETION_EXECUTOR executor)
(.build)) (.build))