mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
One additional reduction.
This commit is contained in:
parent
73b463e814
commit
bd8bb0edfd
|
@ -438,10 +438,9 @@ func optimizeForward(pending ops) (out ops) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
head = ops{t}
|
head = ops{t}
|
||||||
tail = pending
|
|
||||||
)
|
)
|
||||||
|
|
||||||
pending = append(head, tail...)
|
pending = append(head, pending...)
|
||||||
}
|
}
|
||||||
case *getValuesAtIntervalOp:
|
case *getValuesAtIntervalOp:
|
||||||
pending = pending[1:len(pending)]
|
pending = pending[1:len(pending)]
|
||||||
|
|
Loading…
Reference in a new issue