Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: tiny refactor config. #219

Merged
merged 3 commits into from
Jul 28, 2016
Merged

*: tiny refactor config. #219

merged 3 commits into from
Jul 28, 2016

Conversation

qiuyesuifeng
Copy link
Contributor

See #210

Reduce some flags and refactor config parser.
/cc @siddontang @huachaohuang @overvenus

fs.Uint64Var(&cfg.AdvertiseClientPort, "advertise-client-port", 0, "advertise port for client traffic (default '{client-port}')")
fs.Uint64Var(&cfg.PeerPort, "peer-port", defaultPeerPort, "port for peer traffic")
fs.Uint64Var(&cfg.AdvertisePeerPort, "advertise-peer-port", 0, "advertise port for peer traffic (default '{peer-port}')")
fs.StringVar(&cfg.InitialCluster, "initial-cluser", defaultInitialCluster, "initial cluster configuration for bootstrapping (default '{name}=http://{host}:{advertise-peer-port}')")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove defaultInitialCluster and leave empty here.
So if user doesn't set it, default used, but here default may be not defaultInitialCluster.

@siddontang
Copy link
Contributor

LGTM

@qiuyesuifeng
Copy link
Contributor Author

@huachaohuang PTAL

@siddontang
Copy link
Contributor

PTAL @shenli @iamxy

@huachaohuang
Copy link
Contributor

LGTM

1 similar comment
@shenli
Copy link
Member

shenli commented Jul 28, 2016

LGTM

@qiuyesuifeng qiuyesuifeng merged commit f3e4194 into master Jul 28, 2016
@qiuyesuifeng qiuyesuifeng deleted the qiuyesuifeng/config branch July 28, 2016 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants