Skip to content

Commit 7590bd2

Browse files
committed
update docs
1 parent b8b40d2 commit 7590bd2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,7 @@ mod flush_handles_tests {
13941394
let mut handles = FlushHandles::new();
13951395
let handle = tokio::spawn(async {
13961396
sleep(Duration::from_millis(5)).await;
1397+
Vec::new() // Return empty Vec for stats retry
13971398
});
13981399
handles.stats_flush_handles.push(handle);
13991400

bottlecap/src/traces/trace_flusher.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ pub struct TraceFlusher {
2828
/// Each trace batch is sent to the primary endpoint AND all additional endpoints.
2929
pub additional_endpoints: Vec<Endpoint>,
3030
/// Cached HTTP client, lazily initialized on first use.
31-
/// TODO: TraceFlusher and StatsFlusher both hit trace.agent.datadoghq.{site} and could
32-
/// share a single HTTP client for better connection pooling. Consider using a
33-
/// SharedHyperClient wrapper passed to both flushers from main.rs.
31+
/// TODO: `TraceFlusher` and `StatsFlusher` both hit trace.agent.datadoghq.{site} and could
32+
/// share a single HTTP client for better connection pooling.
3433
http_client: OnceCell<HyperClient>,
3534
}
3635

0 commit comments

Comments
 (0)