Skip to content

Commit 68dafbf

Browse files
committed
fmt
1 parent 1897e0c commit 68dafbf

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

bottlecap/src/traces/stats_flusher.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use libdd_trace_protobuf::pb;
1717
use libdd_trace_utils::{config_utils::trace_stats_url, stats_utils};
1818
use tracing::{debug, error};
1919

20-
2120
#[async_trait]
2221
pub trait StatsFlusher {
2322
fn new(
@@ -103,13 +102,20 @@ impl StatsFlusher for ServerlessStatsFlusher {
103102

104103
let start = std::time::Instant::now();
105104

106-
let Ok(http_client) = ServerlessTraceFlusher::get_http_client(self.config.proxy_https.as_ref()) else {
105+
let Ok(http_client) =
106+
ServerlessTraceFlusher::get_http_client(self.config.proxy_https.as_ref())
107+
else {
107108
error!("STATS_FLUSHER | Failed to create HTTP client");
108109
return;
109110
};
110111

111-
let resp =
112-
stats_utils::send_stats_payload_with_client(serialized_stats_payload, endpoint, api_key.as_str(), Some(&http_client)).await;
112+
let resp = stats_utils::send_stats_payload_with_client(
113+
serialized_stats_payload,
114+
endpoint,
115+
api_key.as_str(),
116+
Some(&http_client),
117+
)
118+
.await;
113119
let elapsed = start.elapsed();
114120
debug!(
115121
"Stats request to {} took {} ms",

0 commit comments

Comments
 (0)