Fix metric (#3664)

This commit is contained in:
carllin 2019-04-06 21:57:01 -07:00 committed by GitHub
parent 20aa4434e2
commit 444e87f888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -313,7 +313,6 @@ impl ClusterInfo {
.collect();
let max_ts = votes.iter().map(|x| x.0).max().unwrap_or(since);
let txs: Vec<Transaction> = votes.into_iter().map(|x| x.1).collect();
let votes: Vec<u64> = txs.iter().map(|tx| )
(txs, max_ts)
}
@ -785,7 +784,10 @@ impl ClusterInfo {
"repair-highest-slot",
influxdb::Value::Integer(*slot as i64),
)
.add_field("repair-highest-ix", influxdb::Value::Integer(*slot as i64))
.add_field(
"repair-highest-ix",
influxdb::Value::Integer(*blob_index as i64),
)
.to_owned(),
);
self.window_highest_index_request_bytes(*slot, *blob_index)?