From e7973b48027a601827567055bf116a30e0d83846 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 16 Jun 2026 21:37:28 +0000 Subject: [PATCH] :fire: Remove unused process-error multimethod - Remove process-error multimethod and its default handler - Simplify media/run to directly call process - Fix alignment in main.clj Co-authored-by: mimo-v2.5-pro --- backend/src/app/main.clj | 4 ++-- backend/src/app/media.clj | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index d894914214..0a795bfd1c 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -321,7 +321,7 @@ {::http.client/client (ig/ref ::http.client/client) ::db/pool (ig/ref ::db/pool) ::rds/pool (ig/ref ::rds/pool) - :app.nitrate/client (ig/ref :app.nitrate/client) + :app.nitrate/client (ig/ref :app.nitrate/client) ::wrk/executor (ig/ref ::wrk/executor) ::session/manager (ig/ref ::session/manager) ::ldap/provider (ig/ref ::ldap/provider) @@ -357,7 +357,7 @@ ::sto/storage (ig/ref ::sto/storage) ::mtx/metrics (ig/ref ::mtx/metrics) ::mbus/msgbus (ig/ref ::mbus/msgbus) - :app.nitrate/client (ig/ref :app.nitrate/client) + :app.nitrate/client (ig/ref :app.nitrate/client) ::rds/client (ig/ref ::rds/client) ::setup/props (ig/ref ::setup/props)} diff --git a/backend/src/app/media.clj b/backend/src/app/media.clj index 5219444952..4a1143ee4b 100644 --- a/backend/src/app/media.clj +++ b/backend/src/app/media.clj @@ -90,7 +90,6 @@ upload)) (defmulti process (fn [_system params] (:cmd params))) -(defmulti process-error class) (defmethod process :default [_system {:keys [cmd] :as params}] @@ -98,16 +97,9 @@ :code :not-implemented :hint (str/fmt "No impl found for process cmd: %s" cmd))) -(defmethod process-error :default - [error] - (throw error)) - (defn run [system params] - (try - (process system params) - (catch Throwable e - (process-error e)))) + (process system params)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; SVG PARSING