mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 17:44:06 -08:00
Run gofmt
This commit is contained in:
parent
f24d34d6cd
commit
9a6e7b3e3b
|
@ -654,7 +654,7 @@ func funcLabelReplace(ev *evaluator, args Expressions) model.Value {
|
|||
func funcVector(ev *evaluator, args Expressions) model.Value {
|
||||
return vector{
|
||||
&sample{
|
||||
Metric: metric.Metric{},
|
||||
Metric: metric.Metric{},
|
||||
Value: model.SampleValue(ev.evalFloat(args[0])),
|
||||
Timestamp: ev.Timestamp,
|
||||
},
|
||||
|
@ -857,10 +857,10 @@ var functions = map[string]*Function{
|
|||
Call: funcTopk,
|
||||
},
|
||||
"vector": {
|
||||
Name: "vector",
|
||||
ArgTypes: []model.ValueType{model.ValScalar},
|
||||
ReturnType: model.ValVector,
|
||||
Call: funcVector,
|
||||
Name: "vector",
|
||||
ArgTypes: []model.ValueType{model.ValScalar},
|
||||
ReturnType: model.ValVector,
|
||||
Call: funcVector,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue