This commit is contained in:
xiaolipro 2024-08-07 09:42:42 +08:00
parent f50d427325
commit b59418e6ff

View File

@ -90,8 +90,11 @@ public class TrackPullService : ApplicationService
public async Task<bool> RefreshForTaskAsync() public async Task<bool> RefreshForTaskAsync()
{ {
var configs = await _trackPullCacheService.GetAllPullConfigsAsync(); var configs = await _trackPullCacheService.GetAllPullConfigsAsync();
var tasks = configs.Select(RefreshForConfigAsync).ToArray(); foreach (var config in configs)
await Task.WhenAll(tasks); {
await RefreshForConfigAsync(config);
}
return true; return true;
} }