1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-14 20:45:16 +00:00

have default opts in inc

This commit is contained in:
Henry Oswald 2018-11-27 16:12:12 +00:00
parent 8adfc49af7
commit 917afa3edc

View file

@ -52,7 +52,7 @@ module.exports = Metrics =
set : (key, value, sampleRate = 1)->
inc : (key, sampleRate = 1, opts)->
inc : (key, sampleRate = 1, opts = {})->
key = Metrics.buildPromKey(key)
if !promMetrics[key]?
promMetrics[key] = new prom.Counter({