remove listenAddr flag

This commit is contained in:
Anton Kaliaev 2017-03-17 01:12:37 +04:00
parent 7ee9bb4ea2
commit f36d60552f
No known key found for this signature in database
GPG Key ID: 7B6881D965918214

View File

@ -22,18 +22,16 @@ type statistics struct {
}
func main() {
var listenAddr string
var duration, txsRate int
flag.StringVar(&listenAddr, "listen-addr", "tcp://0.0.0.0:46670", "HTTP and Websocket server listen address")
flag.IntVar(&duration, "T", 10, "Exit after the specified amount of time in seconds")
flag.IntVar(&txsRate, "r", 1000, "Txs per second to send in a connection")
flag.Usage = func() {
fmt.Println(`Tendermint bench.
fmt.Println(`Tendermint blockchain benchmarking tool.
Usage:
tm-bench [-listen-addr="tcp://0.0.0.0:46670"] [-T 10] [-r 1000] [endpoints]
tm-bench [-T 10] [-r 1000] [endpoints]
Examples:
tm-bench localhost:46657`)