mirror of
https://github.com/openziti/zrok.git
synced 2025-06-25 04:02:15 +02:00
empty metrics data sets are not an error (#280)
This commit is contained in:
parent
bd4ce22d97
commit
e2d0b7990e
@ -81,7 +81,7 @@ func (r *influxReader) runQueryForRxTx(query string) (rx int64, tx int64, err er
|
|||||||
}
|
}
|
||||||
count++
|
count++
|
||||||
}
|
}
|
||||||
if count != 2 {
|
if count != 0 && count != 2 {
|
||||||
return -1, -1, errors.Errorf("expected 2 results; got '%d' (%v)", count, strings.ReplaceAll(query, "\n", ""))
|
return -1, -1, errors.Errorf("expected 2 results; got '%d' (%v)", count, strings.ReplaceAll(query, "\n", ""))
|
||||||
}
|
}
|
||||||
return rx, tx, nil
|
return rx, tx, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user