mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Auto retry getting part definitions
This commit is contained in:
parent
b0ea9bb398
commit
5a92aaf115
@ -119,10 +119,13 @@ public class AuthorFiles
|
||||
}
|
||||
|
||||
private async Task<FileDefinition> PrimeDefinition(RelativePath name)
|
||||
{
|
||||
return await CircuitBreaker.WithAutoRetryAllAsync(_logger, async () =>
|
||||
{
|
||||
var uri = _baseUri + $"{name}/definition.json.gz";
|
||||
using var response = await _httpClient.GetAsync(uri);
|
||||
return await ReadDefinition(await response.Content.ReadAsStreamAsync());
|
||||
});
|
||||
}
|
||||
|
||||
private async IAsyncEnumerable<S3Object> AllObjects()
|
||||
|
Loading…
Reference in New Issue
Block a user