diff options
author | Valery Piashchynski <[email protected]> | 2020-12-21 14:25:41 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-21 14:25:41 +0300 |
commit | 960395df42b379c55c095dbed2378bfe20869c83 (patch) | |
tree | ae85337454b5f68efe1eed10640ac2d837612d7c /plugins/http/plugin.go | |
parent | 7b32b6b93576ec72b4b7fdf2068e655f869e9cf8 (diff) |
Remove config2 alias
Diffstat (limited to 'plugins/http/plugin.go')
-rw-r--r-- | plugins/http/plugin.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index a883735a..9729a355 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-multierror" "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/events" "github.com/spiral/roadrunner/v2/interfaces/log" "github.com/spiral/roadrunner/v2/interfaces/pool" @@ -49,7 +49,7 @@ type middleware map[string]Middleware type Plugin struct { sync.Mutex - configurer config2.Configurer + configurer config.Configurer server server.Server log log.Logger @@ -80,7 +80,7 @@ func (s *Plugin) AddListener(listener events.EventListener) { // Init must return configure svc and return true if svc hasStatus enabled. Must return error in case of // misconfiguration. Services must not be used without proper configuration pushed first. -func (s *Plugin) Init(cfg config2.Configurer, log log.Logger, server server.Server) error { +func (s *Plugin) Init(cfg config.Configurer, log log.Logger, server server.Server) error { const op = errors.Op("http Init") err := cfg.UnmarshalKey(PluginName, &s.cfg) if err != nil { |