From 57f71a1a3502b23fcf1b983e5aa7d986213104ed Mon Sep 17 00:00:00 2001 From: qinglin89 <316032931@qq.com> Date: Thu, 24 Feb 2022 15:47:15 +0800 Subject: [PATCH] refactor(plugins):rm unused code --- plugins/api/cli.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/api/cli.go b/plugins/api/cli.go index 52efa0679..babce2a9e 100644 --- a/plugins/api/cli.go +++ b/plugins/api/cli.go @@ -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{ @@ -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")