From 226bc004f55529b39f2d67c7f4ab38ce92ce3c7b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 20 Jul 2025 16:29:02 +0800 Subject: [PATCH] :bug: Add request timeout in gateway --- .../Startup/ServiceCollectionExtensions.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs b/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs index 08cbeaa..89765ff 100644 --- a/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs +++ b/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs @@ -8,11 +8,8 @@ public static class ServiceCollectionExtensions { public static IServiceCollection AddGateway(this IServiceCollection services, IConfiguration configuration) { - services - .AddReverseProxy() - .ConfigureHttpClient((context, handler) => - { - }); + services.AddRequestTimeouts(); + services.AddReverseProxy(); services.AddRegistryService(configuration); services.AddSingleton();