From f07fd3990b8da8199f2e8cf34757260902380d70 Mon Sep 17 00:00:00 2001 From: Eauldane Date: Sun, 14 Sep 2025 00:40:45 +0100 Subject: [PATCH] Using _redis multiplexer instead of DIing it --- .../MareSynchronosServer/Services/SystemInfoService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MareSynchronosServer/MareSynchronosServer/Services/SystemInfoService.cs b/MareSynchronosServer/MareSynchronosServer/Services/SystemInfoService.cs index b597a09..5ea53ac 100644 --- a/MareSynchronosServer/MareSynchronosServer/Services/SystemInfoService.cs +++ b/MareSynchronosServer/MareSynchronosServer/Services/SystemInfoService.cs @@ -25,7 +25,7 @@ public class SystemInfoService : IHostedService, IDisposable public SystemInfoDto SystemInfoDto { get; private set; } = new(); public SystemInfoService(MareMetrics mareMetrics, IConfigurationService configurationService, IServiceProvider services, - ILogger logger, IHubContext hubContext, IRedisDatabase redisDb, IConnectionMultiplexer connectionMultiplexer) + ILogger logger, IHubContext hubContext, IRedisDatabase redisDb) { _mareMetrics = mareMetrics; _config = configurationService; @@ -33,7 +33,7 @@ public class SystemInfoService : IHostedService, IDisposable _logger = logger; _hubContext = hubContext; _redis = redisDb; - _connectionMultiplexer = connectionMultiplexer; + _connectionMultiplexer = _redis.Database.Multiplexer; } public Task StartAsync(CancellationToken cancellationToken)