Skip to content

Commit

Permalink
Merge pull request #843 from bnb-chain/ar-220215-14
Browse files Browse the repository at this point in the history
Remove useless code
  • Loading branch information
qinglin89 authored Mar 3, 2022
2 parents 49c12f4 + 57f71a1 commit 8092b74
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/api/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
// that exposes functionality similar to the cli, but over http
func ServeCommand(cdc *wire.Codec) *cobra.Command {
flagListenAddr := "laddr"
flagCORS := "cors"
flagMaxOpenConnections := "max-open"

cmd := &cobra.Command{
Expand Down Expand Up @@ -63,7 +62,6 @@ func ServeCommand(cdc *wire.Codec) *cobra.Command {
}

cmd.Flags().String(flagListenAddr, "tcp://localhost:8080", "The address for the server to listen on")
cmd.Flags().String(flagCORS, "", "Set the domains that can make CORS requests (* for all)")
cmd.Flags().String(sdk.FlagChainID, "", "The chain ID to connect to")
cmd.Flags().String(sdk.FlagNode, "tcp://localhost:26657", "Address of the node to connect to")
cmd.Flags().Int(flagMaxOpenConnections, 1000, "The number of maximum open connections")
Expand Down

0 comments on commit 8092b74

Please sign in to comment.