mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 03:13:41 -05:00
have default opts in inc
This commit is contained in:
parent
8adfc49af7
commit
917afa3edc
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue