From 64c796f1d2f3837817b869b2b836969f4ba8e2ae Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 16 May 2018 16:25:28 +0900 Subject: [PATCH] A redundant "listen address" flag removed --- cmd/abci-cli/abci-cli.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cmd/abci-cli/abci-cli.go b/cmd/abci-cli/abci-cli.go index 4dc5e96e3..2743fa2b1 100644 --- a/cmd/abci-cli/abci-cli.go +++ b/cmd/abci-cli/abci-cli.go @@ -44,11 +44,9 @@ var ( flagProve bool // counter - flagAddrC string flagSerial bool // kvstore - flagAddrD string flagPersist string ) @@ -125,17 +123,14 @@ func addQueryFlags() { } func addCounterFlags() { - counterCmd.PersistentFlags().StringVarP(&flagAddrC, "addr", "", "tcp://0.0.0.0:46658", "listen address") counterCmd.PersistentFlags().BoolVarP(&flagSerial, "serial", "", false, "enforce incrementing (serial) transactions") } func addDummyFlags() { - dummyCmd.PersistentFlags().StringVarP(&flagAddrD, "addr", "", "tcp://0.0.0.0:46658", "listen address") dummyCmd.PersistentFlags().StringVarP(&flagPersist, "persist", "", "", "directory to use for a database") } func addKVStoreFlags() { - kvstoreCmd.PersistentFlags().StringVarP(&flagAddrD, "addr", "", "tcp://0.0.0.0:46658", "listen address") kvstoreCmd.PersistentFlags().StringVarP(&flagPersist, "persist", "", "", "directory to use for a database") } @@ -659,7 +654,7 @@ func cmdCounter(cmd *cobra.Command, args []string) error { logger := log.NewTMLogger(log.NewSyncWriter(os.Stdout)) // Start the listener - srv, err := server.NewServer(flagAddrC, flagAbci, app) + srv, err := server.NewServer(flagAddress, flagAbci, app) if err != nil { return err } @@ -689,7 +684,7 @@ func cmdKVStore(cmd *cobra.Command, args []string) error { } // Start the listener - srv, err := server.NewServer(flagAddrD, flagAbci, app) + srv, err := server.NewServer(flagAddress, flagAbci, app) if err != nil { return err }