Forgot to handle Option unwrap (#132)
* made the query much faster * aggregate queries should be fast now too * forgot to handle an option unwrap
This commit is contained in:
parent
86f9e7358a
commit
d6513cde74
@ -423,12 +423,14 @@ pub async fn query_user_stats<'a>(
|
|||||||
} else if key == "rpc_secret_key_id" {
|
} else if key == "rpc_secret_key_id" {
|
||||||
match value {
|
match value {
|
||||||
influxdb2_structmap::value::Value::String(inner) => {
|
influxdb2_structmap::value::Value::String(inner) => {
|
||||||
out.insert(
|
match rpc_key_id_to_key.get(&inner) {
|
||||||
"rpc_key",
|
Some(x) => {
|
||||||
serde_json::Value::String(
|
out.insert("rpc_key", serde_json::Value::String(x.to_string()));
|
||||||
rpc_key_id_to_key.get(&inner).unwrap().to_string(),
|
}
|
||||||
),
|
None => {
|
||||||
);
|
debug!("rpc_secret_key_id is not included in this query")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
error!("rpc_secret_key_id should always be a String!");
|
error!("rpc_secret_key_id should always be a String!");
|
||||||
|
Loading…
Reference in New Issue
Block a user