Skip to content

Commit

Permalink
add failover
Browse files Browse the repository at this point in the history
  • Loading branch information
busgo committed Jul 31, 2019
1 parent 7814c82 commit a38c445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ go: finding gopkg.in/yaml.v2 v2.2.1
appledeMacBook-Pro:forest apple$ ./forest -help
flag needs an argument: -help
Usage of ./forest:
-dbUrl string
-db-url string
db url for mysql (default "root:123456@tcp(127.0.0.1:3306)/forest?charset=utf8")
-etcd-dailtimeout int
etcd dailtimeout (default 5)
Expand Down
2 changes: 1 addition & 1 deletion forest/forest.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
httpAddress := flag.String("http-address", DefaultHttpAddress, "http address")
etcdDialTime := flag.Int64("etcd-dailtimeout", DefaultDialTimeout, "etcd dailtimeout")
help := flag.String("help", "", "forest help")
dbUrl := flag.String("dbUrl", DefaultDbUrl, "db url for mysql")
dbUrl := flag.String("db-url", DefaultDbUrl, "db-url for mysql")
flag.Parse()
if *help != "" {
flag.Usage()
Expand Down

0 comments on commit a38c445

Please sign in to comment.