Simplify the sources

This commit is contained in:
9seconds
2018-07-27 13:46:14 +03:00
parent 6253c21615
commit b86ad07ba9
2 changed files with 19 additions and 25 deletions
+5 -4
View File
@@ -110,8 +110,8 @@ var (
Envar("MTG_STATSD_TAGS").
StringMap()
secret = app.Arg("secret", "Secret of this proxy.").Required().String()
adtag = app.Arg("adtag", "ADTag of the proxy.").String()
secret = app.Arg("secret", "Secret of this proxy.").Required().HexBytes()
adtag = app.Arg("adtag", "ADTag of the proxy.").HexBytes()
)
func init() {
@@ -120,7 +120,7 @@ func init() {
}
func main() {
func main() { // nolint: gocyclo
kingpin.MustParse(app.Parse(os.Args[1:]))
err := setRLimit()
@@ -131,8 +131,9 @@ func main() {
conf, err := config.NewConfig(*debug, *verbose,
*bindIP, *publicIPv4, *publicIPv6, *statsIP,
*bindPort, *publicIPv4Port, *publicIPv6Port, *statsPort, *statsdPort,
*secret, *adtag, *statsdIP, *statsdNetwork, *statsdPrefix, *statsdTagsFormat,
*statsdIP, *statsdNetwork, *statsdPrefix, *statsdTagsFormat,
*statsdTags,
*secret, *adtag,
)
if err != nil {
usage(err.Error())