File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments