Improved the automatic update check for slow connections (#129)

This commit is contained in:
Thorsten Sommer 2024-09-08 11:17:10 +02:00 committed by GitHub
parent 9dfabb3c55
commit b3dd213538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -224,7 +224,7 @@ public sealed class RustService : IDisposable
{
try
{
var cts = new CancellationTokenSource(TimeSpan.FromSeconds(16));
var cts = new CancellationTokenSource(TimeSpan.FromSeconds(45));
var response = await this.http.GetFromJsonAsync<UpdateResponse>("/updates/check", this.jsonRustSerializerOptions, cts.Token);
this.logger!.LogInformation($"Checked for an update: update available='{response.UpdateIsAvailable}'; error='{response.Error}'; next version='{response.NewVersion}'; changelog len='{response.Changelog.Length}'");
return response;

View File

@ -1,2 +1,3 @@
# v0.9.6, build 181 (2024-09-08 09:xx UTC)
- Fixed a bug where you couldn't send results to the synonym assistant.
- Improved the automatic update check by increasing the timeout for really slow connections.