Add missing type hints on backend code

This commit is contained in:
Andrey Antukh 2022-12-22 15:12:38 +01:00
parent d094eb3595
commit 68d2afc75d
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@
(defmethod run-collector! :counter
[{:keys [::mdef/instance]} {:keys [inc labels] :or {inc 1 labels default-empty-labels}}]
(let [instance (.labels instance (if (is-array? labels) labels (into-array String labels)))]
(let [instance (.labels ^Counter instance (if (is-array? labels) labels (into-array String labels)))]
(.inc ^Counter$Child instance (double inc))))
(defmethod run-collector! :gauge