From a60be6455115c6a4db829a8f0729bc1b92e27194 Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 1 Feb 2020 12:33:43 +0100 Subject: [PATCH] Ensure metrics instance is a singleton --- PluralKit.Core/Modules.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/Modules.cs b/PluralKit.Core/Modules.cs index c7a90a6e..2bca3638 100644 --- a/PluralKit.Core/Modules.cs +++ b/PluralKit.Core/Modules.cs @@ -60,7 +60,7 @@ namespace PluralKit.Core protected override void Load(ContainerBuilder builder) { builder.Register(c => InitMetrics(c.Resolve())) - .AsSelf().As(); + .AsSelf().As().SingleInstance(); } private IMetricsRoot InitMetrics(CoreConfig config)