Merge pull request #306 from DexterHD/fix-go-config-panic
fix bug with go-config panic
This commit is contained in:
commit
240052246f
10
cmd/cmd.go
10
cmd/cmd.go
@ -87,6 +87,11 @@ var (
|
|||||||
EnvVar: "MICRO_REGISTER_INTERVAL",
|
EnvVar: "MICRO_REGISTER_INTERVAL",
|
||||||
Usage: "Register interval in seconds",
|
Usage: "Register interval in seconds",
|
||||||
},
|
},
|
||||||
|
cli.StringFlag{
|
||||||
|
Name: "server",
|
||||||
|
EnvVar: "MICRO_SERVER",
|
||||||
|
Usage: "Server for go-micro; rpc",
|
||||||
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "server_name",
|
Name: "server_name",
|
||||||
EnvVar: "MICRO_SERVER_NAME",
|
EnvVar: "MICRO_SERVER_NAME",
|
||||||
@ -144,11 +149,6 @@ var (
|
|||||||
Usage: "Selector used to pick nodes for querying",
|
Usage: "Selector used to pick nodes for querying",
|
||||||
Value: "cache",
|
Value: "cache",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
|
||||||
Name: "server",
|
|
||||||
EnvVar: "MICRO_SERVER",
|
|
||||||
Usage: "Server for go-micro; rpc",
|
|
||||||
},
|
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "transport",
|
Name: "transport",
|
||||||
EnvVar: "MICRO_TRANSPORT",
|
EnvVar: "MICRO_TRANSPORT",
|
||||||
|
Loading…
Reference in New Issue
Block a user