Ensure metrics instance is a singleton
This commit is contained in:
		| @@ -60,7 +60,7 @@ namespace PluralKit.Core | ||||
|         protected override void Load(ContainerBuilder builder) | ||||
|         { | ||||
|             builder.Register(c => InitMetrics(c.Resolve<CoreConfig>())) | ||||
|                 .AsSelf().As<IMetrics>(); | ||||
|                 .AsSelf().As<IMetrics>().SingleInstance(); | ||||
|         } | ||||
|  | ||||
|         private IMetricsRoot InitMetrics(CoreConfig config) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user