@@ -12,7 +12,6 @@ use crate::{
1212} ;
1313use ddcommon:: { hyper_migration, tag:: Tag , worker:: Worker } ;
1414
15- use std:: { collections:: HashSet , fmt:: Debug } ;
1615use std:: iter:: Sum ;
1716use std:: ops:: Add ;
1817use std:: {
@@ -25,6 +24,7 @@ use std::{
2524 } ,
2625 time,
2726} ;
27+ use std:: { collections:: HashSet , fmt:: Debug } ;
2828
2929use crate :: metrics:: MetricBucketStats ;
3030use futures:: {
@@ -412,7 +412,9 @@ impl TelemetryWorker {
412412 AddDependency ( dep) => self . data . dependencies . insert ( dep) ,
413413 AddIntegration ( integration) => self . data . integrations . insert ( integration) ,
414414 AddConfig ( cfg) => self . data . configurations . insert ( cfg) ,
415- AddEndpoint ( endpoint) => { self . data . endpoints . insert ( endpoint) ; } ,
415+ AddEndpoint ( endpoint) => {
416+ self . data . endpoints . insert ( endpoint) ;
417+ }
416418 AddLog ( ( identifier, log) ) => {
417419 let ( l, new) = self . data . logs . get_mut_or_insert ( identifier, log) ;
418420 if !new {
@@ -558,18 +560,16 @@ impl TelemetryWorker {
558560 ) )
559561 }
560562 if !self . data . endpoints . is_empty ( ) {
561- payloads. push ( data:: Payload :: AppEndpoints (
562- data:: AppEndpoints {
563- is_first : true ,
564- endpoints : self
565- . data
566- . endpoints
567- . iter ( )
568- . map ( |e| e. to_json_value ( ) . unwrap_or_default ( ) )
569- . filter ( |e| e. is_object ( ) )
570- . collect ( ) ,
571- } ,
572- ) ) ;
563+ payloads. push ( data:: Payload :: AppEndpoints ( data:: AppEndpoints {
564+ is_first : true ,
565+ endpoints : self
566+ . data
567+ . endpoints
568+ . iter ( )
569+ . map ( |e| e. to_json_value ( ) . unwrap_or_default ( ) )
570+ . filter ( |e| e. is_object ( ) )
571+ . collect ( ) ,
572+ } ) ) ;
573573 }
574574 payloads
575575 }
0 commit comments