From f822c36b9254ff54ddd95ec100a3b1a78154be54 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 24 Oct 2024 23:39:52 +0100 Subject: [PATCH] Remove stat points for package download states --- Bloxstrap/Bootstrapper.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index d1a4a5f..ab8bf25 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -1046,9 +1046,6 @@ namespace Bloxstrap const int maxTries = 5; - bool statIsRetrying = false; - bool statIsHttp = false; - App.Logger.WriteLine(LOG_IDENT, "Downloading..."); var buffer = new byte[4096]; @@ -1101,8 +1098,6 @@ namespace Bloxstrap App.Logger.WriteLine(LOG_IDENT, $"An exception occurred after downloading {totalBytesRead} bytes. ({i}/{maxTries})"); App.Logger.WriteException(LOG_IDENT, ex); - statIsRetrying = true; - if (ex.GetType() == typeof(ChecksumFailedException)) { App.SendStat("packageDownloadState", "httpFail"); @@ -1132,13 +1127,9 @@ namespace Bloxstrap { App.Logger.WriteLine(LOG_IDENT, "Retrying download over HTTP..."); packageUrl = packageUrl.Replace("https://", "http://"); - statIsHttp = true; } } } - - if (statIsRetrying) - App.SendStat("packageDownloadState", statIsHttp ? "httpSuccess" : "retrySuccess"); } private void ExtractPackage(Package package, List? files = null)