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/server | |
parent | 7b32b6b93576ec72b4b7fdf2068e655f869e9cf8 (diff) |
Remove config2 alias
Diffstat (limited to 'plugins/server')
-rw-r--r-- | plugins/server/plugin.go | 4 | ||||
-rw-r--r-- | plugins/server/tests/plugin_pipes.go | 6 | ||||
-rw-r--r-- | plugins/server/tests/plugin_sockets.go | 6 | ||||
-rw-r--r-- | plugins/server/tests/plugin_tcp.go | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go index 580c1e10..9f3921e9 100644 --- a/plugins/server/plugin.go +++ b/plugins/server/plugin.go @@ -8,7 +8,7 @@ import ( "strings" "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" @@ -30,7 +30,7 @@ type Plugin struct { } // Init application provider. -func (server *Plugin) Init(cfg config2.Configurer, log log.Logger) error { +func (server *Plugin) Init(cfg config.Configurer, log log.Logger) error { const op = errors.Op("Init") err := cfg.UnmarshalKey(PluginName, &server.cfg) if err != nil { diff --git a/plugins/server/tests/plugin_pipes.go b/plugins/server/tests/plugin_pipes.go index f49cf6dc..9a7d3e3b 100644 --- a/plugins/server/tests/plugin_pipes.go +++ b/plugins/server/tests/plugin_pipes.go @@ -5,7 +5,7 @@ import ( "time" "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/pool" "github.com/spiral/roadrunner/v2/interfaces/server" "github.com/spiral/roadrunner/v2/pkg/payload" @@ -32,12 +32,12 @@ var testPoolConfig = poolImpl.Config{ } type Foo struct { - configProvider config2.Configurer + configProvider config.Configurer wf server.Server pool pool.Pool } -func (f *Foo) Init(p config2.Configurer, workerFactory server.Server) error { +func (f *Foo) Init(p config.Configurer, workerFactory server.Server) error { f.configProvider = p f.wf = workerFactory return nil diff --git a/plugins/server/tests/plugin_sockets.go b/plugins/server/tests/plugin_sockets.go index ee971e45..c62871b1 100644 --- a/plugins/server/tests/plugin_sockets.go +++ b/plugins/server/tests/plugin_sockets.go @@ -4,7 +4,7 @@ import ( "context" "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/pool" "github.com/spiral/roadrunner/v2/interfaces/server" "github.com/spiral/roadrunner/v2/pkg/payload" @@ -13,12 +13,12 @@ import ( ) type Foo2 struct { - configProvider config2.Configurer + configProvider config.Configurer wf server.Server pool pool.Pool } -func (f *Foo2) Init(p config2.Configurer, workerFactory server.Server) error { +func (f *Foo2) Init(p config.Configurer, workerFactory server.Server) error { f.configProvider = p f.wf = workerFactory return nil diff --git a/plugins/server/tests/plugin_tcp.go b/plugins/server/tests/plugin_tcp.go index cdf23e21..781b87d0 100644 --- a/plugins/server/tests/plugin_tcp.go +++ b/plugins/server/tests/plugin_tcp.go @@ -4,7 +4,7 @@ import ( "context" "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/pool" "github.com/spiral/roadrunner/v2/interfaces/server" "github.com/spiral/roadrunner/v2/pkg/payload" @@ -13,12 +13,12 @@ import ( ) type Foo3 struct { - configProvider config2.Configurer + configProvider config.Configurer wf server.Server pool pool.Pool } -func (f *Foo3) Init(p config2.Configurer, workerFactory server.Server) error { +func (f *Foo3) Init(p config.Configurer, workerFactory server.Server) error { f.configProvider = p f.wf = workerFactory return nil |