removed joined_on variable that was not used
This commit is contained in:
parent
47f07261ed
commit
b6cab88c4e
@ -77,14 +77,6 @@ pub async fn query_user_stats<'a>(
|
|||||||
"opt_in_proxy"
|
"opt_in_proxy"
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut join_candidates: Vec<String> = vec![
|
|
||||||
"_time".to_string(),
|
|
||||||
"_measurement".to_string(),
|
|
||||||
"archive_needed".to_string(),
|
|
||||||
"chain_id".to_string(),
|
|
||||||
"error_response".to_string(),
|
|
||||||
];
|
|
||||||
|
|
||||||
// Include a hashmap to go from rpc_secret_key_id to the rpc_secret_key
|
// Include a hashmap to go from rpc_secret_key_id to the rpc_secret_key
|
||||||
let mut rpc_key_id_to_key = HashMap::new();
|
let mut rpc_key_id_to_key = HashMap::new();
|
||||||
|
|
||||||
@ -140,9 +132,6 @@ pub async fn query_user_stats<'a>(
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make the tables join on the rpc_key_id as well:
|
|
||||||
join_candidates.push("rpc_secret_key_id".to_string());
|
|
||||||
|
|
||||||
// Iterate, pop and add to string
|
// Iterate, pop and add to string
|
||||||
f!(
|
f!(
|
||||||
r#"|> filter(fn: (r) => contains(value: r["rpc_secret_key_id"], set: {:?}))"#,
|
r#"|> filter(fn: (r) => contains(value: r["rpc_secret_key_id"], set: {:?}))"#,
|
||||||
@ -177,13 +166,8 @@ pub async fn query_user_stats<'a>(
|
|||||||
|
|
||||||
let drop_method = match stat_response_type {
|
let drop_method = match stat_response_type {
|
||||||
StatType::Aggregated => f!(r#"|> drop(columns: ["method"])"#),
|
StatType::Aggregated => f!(r#"|> drop(columns: ["method"])"#),
|
||||||
StatType::Detailed => {
|
StatType::Detailed => "".to_string(),
|
||||||
// Make the tables join on the method column as well
|
|
||||||
join_candidates.push("method".to_string());
|
|
||||||
"".to_string()
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
let join_candidates = f!(r#"{:?}"#, join_candidates);
|
|
||||||
|
|
||||||
let query = f!(r#"
|
let query = f!(r#"
|
||||||
base = from(bucket: "{bucket}")
|
base = from(bucket: "{bucket}")
|
||||||
|
Loading…
Reference in New Issue
Block a user