From 7fb3cc3588cfde9260a6bb431330ce1e0a71f56d Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sat, 23 Jan 2021 23:38:10 +0300 Subject: interfaces folder deprecated --- tests/plugins/server/plugin_tcp.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/plugins/server/plugin_tcp.go') diff --git a/tests/plugins/server/plugin_tcp.go b/tests/plugins/server/plugin_tcp.go index 98c13b2b..ef4cea39 100644 --- a/tests/plugins/server/plugin_tcp.go +++ b/tests/plugins/server/plugin_tcp.go @@ -4,8 +4,8 @@ import ( "context" "github.com/spiral/errors" - "github.com/spiral/roadrunner/v2/interfaces/pool" "github.com/spiral/roadrunner/v2/pkg/payload" + "github.com/spiral/roadrunner/v2/pkg/pool" "github.com/spiral/roadrunner/v2/pkg/worker" "github.com/spiral/roadrunner/v2/plugins/config" "github.com/spiral/roadrunner/v2/plugins/server" @@ -60,11 +60,7 @@ func (f *Foo3) Serve() chan error { } // test that our worker is functional - sw, err := worker.From(w) - if err != nil { - errCh <- err - return errCh - } + sw := worker.From(w) rsp, err := sw.Exec(r) if err != nil { -- cgit v1.2.3