diff --git a/backend/src/app/http/client.clj b/backend/src/app/http/client.clj index cf30dbb46d..5b4a8541c8 100644 --- a/backend/src/app/http/client.clj +++ b/backend/src/app/http/client.clj @@ -8,7 +8,6 @@ "Http client abstraction layer." (:require [app.common.spec :as us] - [app.worker :as wrk] [clojure.spec.alpha :as s] [integrant.core :as ig] [java-http-clj.core :as http] @@ -21,12 +20,11 @@ (s/keys :req [::client])) (defmethod ig/pre-init-spec ::client [_] - (s/keys :req [::wrk/executor])) + (s/keys :req [])) (defmethod ig/init-key ::client - [_ {:keys [::wrk/executor] :as cfg}] - (http/build-client {:executor executor - :connect-timeout 30000 ;; 10s + [_ _] + (http/build-client {:connect-timeout 30000 ;; 10s :follow-redirects :always})) (defn send! diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index ebf18468e7..dc93f1773d 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -217,7 +217,7 @@ {::db/pool (ig/ref ::db/pool)} ::http.client/client - {::wrk/executor (ig/ref ::wrk/executor)} + {} ::session/manager {::db/pool (ig/ref ::db/pool)}