From de138fe87ac3e1dafcd6dcedaa14ca53a4dac511 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 10 Jun 2018 14:35:25 +0300 Subject: container tests --- cmd/rr/http/workers.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cmd/rr/http/workers.go') diff --git a/cmd/rr/http/workers.go b/cmd/rr/http/workers.go index 6d74a412..c9aa5b04 100644 --- a/cmd/rr/http/workers.go +++ b/cmd/rr/http/workers.go @@ -24,7 +24,6 @@ import ( "errors" "github.com/spf13/cobra" rr "github.com/spiral/roadrunner/cmd/rr/cmd" - "github.com/spiral/roadrunner/rpc" ) func init() { @@ -40,11 +39,12 @@ func workersHandler(cmd *cobra.Command, args []string) error { return errors.New("RPC service is not configured") } - client, err := rr.Container.Get("rpc").(*rpc.Service).Client() - if err != nil { - return err - } - defer client.Close() + //todo: change + //client, err := rr.Container.Get("rpc").(*rpc.Service).Client() + //if err != nil { + // return err + //} + //defer client.Close() //var r http.WorkerList //if err := client.Call("http.Workers", true, &r); err != nil { -- cgit v1.2.3