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

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-09-08 11:17:10 +02:00
1 parent 9dfabb3c55
commit b3dd213538
2 files changed
+3 -2

No files matched your search

+1 -1
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;
@@ -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.
- 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.