summaryrefslogtreecommitdiff
path: root/cmd/rr/http/workers.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 14:35:25 +0300
committerWolfy-J <[email protected]>2018-06-10 14:35:25 +0300
commitde138fe87ac3e1dafcd6dcedaa14ca53a4dac511 (patch)
tree4fac1951f986e5d972bd55dfb5284691365b94c3 /cmd/rr/http/workers.go
parentf633e6dff42cd3fa68e801dd70e3704a47949b55 (diff)
container tests
Diffstat (limited to 'cmd/rr/http/workers.go')
-rw-r--r--cmd/rr/http/workers.go12
1 files changed, 6 insertions, 6 deletions
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 {