mirror of
https://github.com/openziti/zrok.git
synced 2025-08-19 12:24:37 +02:00
empty metrics data sets are not an error (#280)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user