From aee516e642ef16a76e5bced7ccc543785495309b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 15 Nov 2023 13:35:34 +0100 Subject: [PATCH] :sparkles: Unify system binding on devenv repl and nrepl --- backend/dev/user.clj | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/backend/dev/user.clj b/backend/dev/user.clj index 043679aeb..697826f42 100644 --- a/backend/dev/user.clj +++ b/backend/dev/user.clj @@ -94,22 +94,14 @@ (defn- start [] (try - (alter-var-root #'system (fn [sys] - (when sys (ig/halt! sys)) - (-> main/system-config - (cond-> (contains? cf/flags :backend-worker) - (merge main/worker-config)) - (ig/prep) - (ig/init)))) + (main/start) :started (catch Throwable cause (ex/print-throwable cause)))) (defn- stop [] - (alter-var-root #'system (fn [sys] - (when sys (ig/halt! sys)) - nil)) + (main/stop) :stopped) (defn restart