summaryrefslogtreecommitdiff
path: root/plugins/metrics
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-21 14:25:41 +0300
committerValery Piashchynski <[email protected]>2020-12-21 14:25:41 +0300
commit960395df42b379c55c095dbed2378bfe20869c83 (patch)
treeae85337454b5f68efe1eed10640ac2d837612d7c /plugins/metrics
parent7b32b6b93576ec72b4b7fdf2068e655f869e9cf8 (diff)
Remove config2 alias
Diffstat (limited to 'plugins/metrics')
-rw-r--r--plugins/metrics/plugin.go4
-rw-r--r--plugins/metrics/tests/plugin1.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/metrics/plugin.go b/plugins/metrics/plugin.go
index 956166ee..1f3ca005 100644
--- a/plugins/metrics/plugin.go
+++ b/plugins/metrics/plugin.go
@@ -11,7 +11,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/spiral/endure"
"github.com/spiral/errors"
- config2 "github.com/spiral/roadrunner/v2/interfaces/config"
+ "github.com/spiral/roadrunner/v2/interfaces/config"
"github.com/spiral/roadrunner/v2/interfaces/log"
"github.com/spiral/roadrunner/v2/interfaces/metrics"
"golang.org/x/sys/cpu"
@@ -40,7 +40,7 @@ type Plugin struct {
}
// Init service.
-func (m *Plugin) Init(cfg config2.Configurer, log log.Logger) error {
+func (m *Plugin) Init(cfg config.Configurer, log log.Logger) error {
const op = errors.Op("Metrics Init")
err := cfg.UnmarshalKey(PluginName, &m.cfg)
if err != nil {
diff --git a/plugins/metrics/tests/plugin1.go b/plugins/metrics/tests/plugin1.go
index 08dd2593..7a5e5e6c 100644
--- a/plugins/metrics/tests/plugin1.go
+++ b/plugins/metrics/tests/plugin1.go
@@ -2,15 +2,15 @@ package tests
import (
"github.com/prometheus/client_golang/prometheus"
- config2 "github.com/spiral/roadrunner/v2/interfaces/config"
+ "github.com/spiral/roadrunner/v2/interfaces/config"
)
// Gauge //////////////
type Plugin1 struct {
- config config2.Configurer
+ config config.Configurer
}
-func (p1 *Plugin1) Init(cfg config2.Configurer) error {
+func (p1 *Plugin1) Init(cfg config.Configurer) error {
p1.config = cfg
return nil
}