summaryrefslogtreecommitdiff
path: root/plugins/factory/tests/plugin_2.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/factory/tests/plugin_2.go')
-rw-r--r--plugins/factory/tests/plugin_2.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/factory/tests/plugin_2.go b/plugins/factory/tests/plugin_2.go
index 2409627e..dbdb065b 100644
--- a/plugins/factory/tests/plugin_2.go
+++ b/plugins/factory/tests/plugin_2.go
@@ -13,11 +13,11 @@ import (
type Foo2 struct {
configProvider config.Provider
- wf factory.WorkerFactory
+ wf factory.AppFactory
spw factory.Spawner
}
-func (f *Foo2) Init(p config.Provider, workerFactory factory.WorkerFactory, spawner factory.Spawner) error {
+func (f *Foo2) Init(p config.Provider, workerFactory factory.AppFactory, spawner factory.Spawner) error {
f.configProvider = p
f.wf = workerFactory
f.spw = spawner
@@ -27,14 +27,14 @@ func (f *Foo2) Init(p config.Provider, workerFactory factory.WorkerFactory, spaw
func (f *Foo2) Serve() chan error {
errCh := make(chan error, 1)
- r := &factory.AppConfig{}
+ r := &factory.Config{}
err := f.configProvider.UnmarshalKey("app", r)
if err != nil {
errCh <- err
return errCh
}
- cmd, err := f.spw.NewCmd(nil)
+ cmd, err := f.spw.CommandFactory(nil)
if err != nil {
errCh <- err
return errCh