Ensure metrics instance is a singleton
This commit is contained in:
parent
2abb9fc9f9
commit
a60be64551
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user