Skip to content

Commit

Permalink
Format main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkreeftmeijer committed Jul 23, 2024
1 parent bbb13e3 commit c17bb81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ async fn run() -> Result<(), Error> {

for metric in metrics {
let metric_bytes = metric.write_to_bytes().expect("Could not serialize metric");
let appsignal_response = reqwest_client.post(url.clone()).body(metric_bytes).send().await?;
let appsignal_response = reqwest_client
.post(url.clone())
.body(metric_bytes)
.send()
.await?;

debug!("Metric sent: {:?}", appsignal_response);
}
Expand All @@ -252,9 +256,9 @@ async fn run() -> Result<(), Error> {

#[cfg(test)]
mod tests {
use std::assert_eq;
use crate::KubernetesMetric;
use serde_json::json;
use std::assert_eq;

#[test]
fn extract_node_metrics_with_empty_results() {
Expand Down

0 comments on commit c17bb81

Please sign in to comment.