From fe74060df99d1ab917acc1b095ae6da8210bb4be Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 26 Oct 2025 02:52:15 +0800 Subject: [PATCH] :bug: Fix some uncleaned code lead to failing compilation --- DysonNetwork.Drive/Program.cs | 2 -- .../Startup/ServiceCollectionExtensions.cs | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/DysonNetwork.Drive/Program.cs b/DysonNetwork.Drive/Program.cs index f8897de..d58597e 100644 --- a/DysonNetwork.Drive/Program.cs +++ b/DysonNetwork.Drive/Program.cs @@ -19,8 +19,6 @@ builder.Services.AddAppAuthentication(); builder.Services.AddDysonAuth(); builder.Services.AddAccountService(); -builder.Services.AddAppFileStorage(builder.Configuration); - builder.Services.AddAppFlushHandlers(); builder.Services.AddAppBusinessServices(); builder.Services.AddAppScheduledJobs(); diff --git a/DysonNetwork.Drive/Startup/ServiceCollectionExtensions.cs b/DysonNetwork.Drive/Startup/ServiceCollectionExtensions.cs index 6c726e7..f77103f 100644 --- a/DysonNetwork.Drive/Startup/ServiceCollectionExtensions.cs +++ b/DysonNetwork.Drive/Startup/ServiceCollectionExtensions.cs @@ -1,11 +1,8 @@ using System.Text.Json; using System.Text.Json.Serialization; -using System.Threading.RateLimiting; using DysonNetwork.Shared.Cache; -using Microsoft.AspNetCore.RateLimiting; using NodaTime; using NodaTime.Serialization.SystemTextJson; -using tusdotnet.Stores; namespace DysonNetwork.Drive.Startup; @@ -56,17 +53,6 @@ public static class ServiceCollectionExtensions return services; } - public static IServiceCollection AddAppFileStorage(this IServiceCollection services, IConfiguration configuration) - { - var tusStorePath = configuration.GetSection("Tus").GetValue("StorePath")!; - Directory.CreateDirectory(tusStorePath); - var tusDiskStore = new TusDiskStore(tusStorePath); - - services.AddSingleton(tusDiskStore); - - return services; - } - public static IServiceCollection AddAppBusinessServices(this IServiceCollection services) { services.AddScoped();