File tree Expand file tree Collapse file tree
Bleatingsheep.NewHydrant.Bot.Public/Osu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,17 +125,19 @@ await api.SendMessageAsync(
125125 . ToArrayAsync ( ) ;
126126 await Task . WhenAll ( tasks ) . ConfigureAwait ( false ) ;
127127 Logger . Info (
128- $ "查询 API 花费 { stopwatch . ElapsedMilliseconds } ms,失败 { tasks . Length - fetchIds . Count } 个 。"
128+ $ "查询 API 花费 { stopwatch . ElapsedMilliseconds } ms,失败 { fetchIds . Count - completes } 个,重试 { tasks . Length - fetchIds . Count } 次 。"
129129 ) ;
130130
131131 var errorMessages = new List < string > ( ) ;
132132 if ( cancellationToken . IsCancellationRequested )
133133 {
134134 errorMessages . Add ( "查询用户信息超时,部分数据可能不完整。" ) ;
135135 }
136- if ( tasks . Length - fetchIds . Count > 0 )
136+ if ( fetchIds . Count - completes > 0 )
137137 {
138- errorMessages . Add ( $ "有 { tasks . Length - fetchIds . Count } 人增量数据查询失败。") ;
138+ errorMessages . Add (
139+ $ "有 { fetchIds . Count - completes } 人增量数据查询失败,重试了 { tasks . Length - fetchIds . Count } 次。"
140+ ) ;
139141 }
140142
141143 var cps = (
You can’t perform that action at this time.
0 commit comments