Skip to content

Commit

Permalink
Rename blaze.metrics.Collector to Resolve Loading Issue
Browse files Browse the repository at this point in the history
At some unknown location, the namespace blaze.metrics.Collector was
loaded in the lower-case form. So I renamed it to resolve this.
  • Loading branch information
alexanderkiel committed Dec 12, 2022
1 parent 67d01ce commit 1eb3720
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/metrics/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
{:project "deps.edn"
:compile-opts {:direct-linking true}})
:class-dir "target/classes"
:ns-compile ['blaze.metrics.Collector]}))
:ns-compile ['blaze.metrics.collector]}))
2 changes: 1 addition & 1 deletion modules/metrics/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
{:mvn/version "1.2.4"}}

:main-opts ["-m" "cloverage.coverage" "--codecov" "-p" "src" "-s" "test"
"-e" ".*spec$" -e "blaze.metrics.Collector"]}}}
"-e" ".*spec$" -e "blaze.metrics.collector"]}}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns blaze.metrics.Collector
(ns blaze.metrics.collector
(:gen-class
:extends io.prometheus.client.Collector
:constructors {[Object] []}
Expand All @@ -15,4 +15,4 @@


(defn -collect-void [this]
((.-fn ^blaze.metrics.Collector this)))
((.-fn ^blaze.metrics.collector this)))
2 changes: 1 addition & 1 deletion modules/metrics/src/blaze/metrics/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


(defmacro collector [& body]
`(blaze.metrics.Collector. (fn [] ~@body)))
`(blaze.metrics.collector. (fn [] ~@body)))


(defn collect
Expand Down

0 comments on commit 1eb3720

Please sign in to comment.