diff --git a/backend/src/app/http.clj b/backend/src/app/http.clj index cf212609c..4c35c39c7 100644 --- a/backend/src/app/http.clj +++ b/backend/src/app/http.clj @@ -65,14 +65,14 @@ ::wrk/executor])) (defmethod ig/init-key ::server - [_ {:keys [::handler ::router ::host ::port] :as cfg}] + [_ {:keys [::handler ::router ::host ::port ::wrk/executor] :as cfg}] (l/info :hint "starting http server" :port port :host host) (let [options {:http/port port :http/host host :http/max-body-size (::max-body-size cfg) :http/max-multipart-body-size (::max-multipart-body-size cfg) :xnio/io-threads (::io-threads cfg) - :xnio/dispatch (::wrk/executor cfg) + :xnio/dispatch executor :ring/async true} handler (cond diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index 9e6da0164..17344c73e 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -239,8 +239,7 @@ {::http/port (cf/get :http-server-port) ::http/host (cf/get :http-server-host) ::http/router (ig/ref ::http/router) - ::http/metrics (ig/ref ::mtx/metrics) - ::http/executor (ig/ref ::wrk/executor) + ::wrk/executor (ig/ref ::wrk/executor) ::http/io-threads (cf/get :http-server-io-threads) ::http/max-body-size (cf/get :http-server-max-body-size) ::http/max-multipart-body-size (cf/get :http-server-max-multipart-body-size)}