mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 08:44:14 +01: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++
|
||||
}
|
||||
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 rx, tx, nil
|
||||
|
Loading…
Reference in New Issue
Block a user