This commit is contained in:
streamer45 2023-10-06 10:00:37 -06:00
parent 593ce26f37
commit c9dc5d5eac
No known key found for this signature in database
GPG Key ID: C31222BC9269BBBC

View File

@ -59,15 +59,10 @@ func (ps *PlatformService) resetMetrics() error {
}
ps.metrics = &platformMetrics{
cfgFn: ps.Config,
metricsImpl: ps.metricsIFace,
logger: ps.logger,
getPluginsEnv: func() *plugin.Environment {
if ps.pluginEnv == nil {
return nil
}
return ps.pluginEnv.GetPluginsEnvironment()
},
cfgFn: ps.Config,
metricsImpl: ps.metricsIFace,
logger: ps.logger,
getPluginsEnv: ps.pluginEnv.GetPluginsEnvironment,
}
if err := ps.metrics.initMetricsRouter(); err != nil {