Authored by 刘金林

Merge branch '627master' into 'master'

remove useless dispatch



See merge request !25
@@ -78,13 +78,11 @@ @@ -78,13 +78,11 @@
78 { 78 {
79 static dispatch_once_t onceToken; 79 static dispatch_once_t onceToken;
80 dispatch_once(&onceToken, ^{ 80 dispatch_once(&onceToken, ^{
81 - [[NSNotificationCenter defaultCenter] addObserverForName:@"yoho_image_download_network_metrics" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification * _Nonnull note) { 81 + [[NSNotificationCenter defaultCenter] addObserverForName:@"yoho_image_download_network_metrics" object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
82 if (![YHEventReport sharedInstance].isAppReportEnable || ![YHEventReport sharedInstance].isImagePerformanceTrackEnable) { 82 if (![YHEventReport sharedInstance].isAppReportEnable || ![YHEventReport sharedInstance].isImagePerformanceTrackEnable) {
83 return ; 83 return ;
84 } 84 }
85 - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{  
86 [self reportImageViewPerformanceForNotification:note]; 85 [self reportImageViewPerformanceForNotification:note];
87 - });  
88 }]; 86 }];
89 }); 87 });
90 } 88 }