Commits

Paul Bellamy  committed b1fcab7

Fixing compile

  • Participants
  • Parent commits 1c6c73f

Comments (0)

Files changed (1)

File metrics-clojure-ring/src/metrics/ring/expose.clj

 (defn expose-metrics-as-json
   ([handler] (expose-metrics-as-json handler "/metrics"))
   ([handler uri]
-   (let [request-uri (:uri request)]
-     (fn [request]
+   (fn [request]
+     (let [request-uri (:uri request)]
        (if (or (.startsWith request-uri (sanitize-uri uri))
                (= request-uri uri))
          (metrics-json request)