From 156a51ab10f2da74457bd954b272c289d729b0e1 Mon Sep 17 00:00:00 2001 From: Anton Kucherov Date: Thu, 13 Sep 2018 19:02:08 +0300 Subject: [PATCH] fix bug with go-config panic See: https://github.com/micro/go-config/issues/49 --- cmd/cmd.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index c2e4b5ed..2ed2954a 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -87,6 +87,11 @@ var ( EnvVar: "MICRO_REGISTER_INTERVAL", Usage: "Register interval in seconds", }, + cli.StringFlag{ + Name: "server", + EnvVar: "MICRO_SERVER", + Usage: "Server for go-micro; rpc", + }, cli.StringFlag{ Name: "server_name", EnvVar: "MICRO_SERVER_NAME", @@ -144,11 +149,6 @@ var ( Usage: "Selector used to pick nodes for querying", Value: "cache", }, - cli.StringFlag{ - Name: "server", - EnvVar: "MICRO_SERVER", - Usage: "Server for go-micro; rpc", - }, cli.StringFlag{ Name: "transport", EnvVar: "MICRO_TRANSPORT",