forked from TrueCloudLab/frostfs-http-gw
metrics: fix linter warning
It's useless, but still we want to be green Error: missing cases in switch of type promhttp.HandlerErrorHandling: ContinueOnError (exhaustive)
This commit is contained in:
parent
3ee5ad52b6
commit
12859c2e5d
1 changed files with 3 additions and 2 deletions
|
@ -108,9 +108,10 @@ func metricsHandler(reg prometheus.Gatherer, opts promhttp.HandlerOpts) fasthttp
|
|||
case promhttp.HTTPErrorOnError:
|
||||
c.Error(err.Error(), fasthttp.StatusServiceUnavailable)
|
||||
return true
|
||||
default:
|
||||
// Do nothing in all other cases, including ContinueOnError.
|
||||
return false
|
||||
}
|
||||
// Do nothing in all other cases, including ContinueOnError.
|
||||
return false
|
||||
}
|
||||
|
||||
for _, mf := range mfs {
|
||||
|
|
Loading…
Reference in a new issue