~severeoverfl0w/ring-graph

6470636ea8684061c0909d686942ed46d680d6f7 — Dominic Monroe 2 years ago 9780c9d
Dedupe handler code

Prevent future mishaps
1 files changed, 4 insertions(+), 2 deletions(-)

M src/io/dominic/ring_graph/core.clj
M src/io/dominic/ring_graph/core.clj => src/io/dominic/ring_graph/core.clj +4 -2
@@ 178,14 178,16 @@
    (catch java.io.IOException _
      true)))

(def handler (wrap-params #'app))

(comment
  (srv/run-server (wrap-params #'app) {:port 8000})
  (srv/run-server handler {:port 8000})
  )

(defn -main
 [& _args]
 (if-not (deps-missing?)
   (srv/run-server (wrap-params #'app) {:port 8000})
   (srv/run-server handler {:port 8000})
   (do
     (binding [*out* *err*]
       (println "Dependencies missing.  Is wrk installed?"))