From 45421c8b23eeedb65c26c3d08f5b777cc36f907f Mon Sep 17 00:00:00 2001 From: anatoly Date: Mon, 19 Jan 2015 12:01:17 -0500 Subject: [PATCH] depending on hface jar (e.g. itself) in dev, as a temp workaround for a figwheel bug: https://github.com/bhauman/lein-figwheel/issues/68 --- project.clj | 3 ++- src/clj/hface/stats.clj | 3 ++- src/clj/hface/ui/routes.clj | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index 2ab5093..5a75585 100644 --- a/project.clj +++ b/project.clj @@ -59,7 +59,8 @@ ui.routes {:handler hface.ui.routes/app} :dependencies [[ring-mock "0.1.5"] [ring/ring-devel "1.3.2"] - [pjstadig/humane-test-output "0.6.0"]] + [pjstadig/humane-test-output "0.6.0"] + [org.hface/hface "0.1.0"]] ;; is needed until figweel bug (https://github.com/bhauman/lein-figwheel/issues/68) is fixed :plugins [[lein-figwheel "0.2.1-SNAPSHOT"]] diff --git a/src/clj/hface/stats.clj b/src/clj/hface/stats.clj index 6bd65cf..11c5261 100644 --- a/src/clj/hface/stats.clj +++ b/src/clj/hface/stats.clj @@ -20,7 +20,8 @@ parse-string keys-to-keywords)) -;;TODO: atom and hz instance are not serializable.. work in progress +;; TODO: atom and hz instance are not serializable.. work in progress +;; need this due to a figwheel bug: https://github.com/bhauman/lein-figwheel/issues/68#issuecomment-70163386 (defn instance-stats-task [] (let [instance (atom nil)] (reify diff --git a/src/clj/hface/ui/routes.clj b/src/clj/hface/ui/routes.clj index 38ad1bb..ccf23fe 100644 --- a/src/clj/hface/ui/routes.clj +++ b/src/clj/hface/ui/routes.clj @@ -15,7 +15,7 @@ (defroutes routes (GET "/" [] (render-file "templates/index.html" {:dev (env :dev?)})) - (GET "/cluster-stats" [] (to-transit (cluster-stats hz))) + (GET "/cluster-stats" [] (to-transit (cluster-stats @hz))) (resources "/") (not-found "Not Found"))