Skip to content

Commit 030fd5d

Browse files
committed
update docs
1 parent f692a60 commit 030fd5d

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
@@ -1391,6 +1391,7 @@ mod flush_handles_tests {
13911391
let mut handles = FlushHandles::new();
13921392
let handle = tokio::spawn(async {
13931393
sleep(Duration::from_millis(5)).await;
1394+
Vec::new() // Return empty Vec for stats retry
13941395
});
13951396
handles.stats_flush_handles.push(handle);
13961397

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)