Skip to content

Commit 719e99c

Browse files
committed
fix: 修正失败个数描述。
1 parent 6478f3e commit 719e99c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Bleatingsheep.NewHydrant.Bot.Public/Osu/Highlight.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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 = (

0 commit comments

Comments
 (0)