summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-19 13:48:43 +0300
committerValery Piashchynski <[email protected]>2021-01-19 13:48:43 +0300
commit9bb05ec11065e765d14701f3f0c6aef19640dff7 (patch)
tree10e88d11ac3571c701d06e3671e6e2b538d879ed /cmd
parenta9a206b31e272e0508fff496e9641c4db291ddb7 (diff)
Uniform debug message from the http hanlder
Update tests Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cli/workers.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/cli/workers.go b/cmd/cli/workers.go
index 03639aa4..47dd2a85 100644
--- a/cmd/cli/workers.go
+++ b/cmd/cli/workers.go
@@ -17,9 +17,8 @@ import (
"github.com/spiral/roadrunner/v2/tools"
)
-var (
- interactive bool
-)
+// use interactive mode
+var interactive bool
const InformerList string = "informer.List"
const InformerWorkers string = "informer.Workers"
@@ -42,7 +41,7 @@ func init() {
root.AddCommand(workersCommand)
}
-func workersHandler(cmd *cobra.Command, args []string) error {
+func workersHandler(_ *cobra.Command, args []string) error {
const op = errors.Op("workers cobra handler")
// get RPC client
client, err := RPCClient()