From 507240077b5d9d613a36a13edd14f60f3704f225 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Thu, 25 Aug 2022 20:08:45 +0000 Subject: [PATCH] Remove default pprof enabled values --- chain/dev/config.toml | 1 - chain/dev/defaults.go | 3 --- chain/gssmr/config.toml | 1 - chain/gssmr/defaults.go | 3 --- chain/kusama/config.toml | 1 - chain/kusama/defaults.go | 3 --- chain/polkadot/config.toml | 1 - chain/polkadot/defaults.go | 3 --- dot/config.go | 4 ---- 9 files changed, 20 deletions(-) diff --git a/chain/dev/config.toml b/chain/dev/config.toml index c55318871b1..434e79f59a1 100644 --- a/chain/dev/config.toml +++ b/chain/dev/config.toml @@ -52,7 +52,6 @@ modules = [ ws-port = 8546 [pprof] -enabled = false listening-address = "localhost:6060" block-rate = 0 mutex-rate = 0 diff --git a/chain/dev/defaults.go b/chain/dev/defaults.go index 2d9ec0f778c..adbdcbccf2e 100644 --- a/chain/dev/defaults.go +++ b/chain/dev/defaults.go @@ -96,9 +96,6 @@ var ( const ( // PprofConfig - // DefaultPprofEnabled to indicate the pprof http server should be enabled or not. - DefaultPprofEnabled = true - // DefaultPprofListeningAddress default pprof HTTP server listening address. DefaultPprofListeningAddress = "localhost:6060" diff --git a/chain/gssmr/config.toml b/chain/gssmr/config.toml index 309ff2269b1..5165b96fa9d 100644 --- a/chain/gssmr/config.toml +++ b/chain/gssmr/config.toml @@ -54,7 +54,6 @@ modules = [ ws-port = 8546 [pprof] -enabled = false listening-address = "localhost:6060" block-rate = 0 mutex-rate = 0 diff --git a/chain/gssmr/defaults.go b/chain/gssmr/defaults.go index b0319644db8..bae0de44125 100644 --- a/chain/gssmr/defaults.go +++ b/chain/gssmr/defaults.go @@ -104,9 +104,6 @@ var ( const ( // PprofConfig - // DefaultPprofEnabled to indicate the pprof http server should be enabled or not. - DefaultPprofEnabled = true - // DefaultPprofListeningAddress default pprof HTTP server listening address. DefaultPprofListeningAddress = "localhost:6060" diff --git a/chain/kusama/config.toml b/chain/kusama/config.toml index 3ce5a210ea0..865fd01f12f 100644 --- a/chain/kusama/config.toml +++ b/chain/kusama/config.toml @@ -42,7 +42,6 @@ ws = false ws-external = false [pprof] -enabled = false listening-address = "localhost:6060" block-rate = 0 mutex-rate = 0 diff --git a/chain/kusama/defaults.go b/chain/kusama/defaults.go index a55caecd5b2..832914aee43 100644 --- a/chain/kusama/defaults.go +++ b/chain/kusama/defaults.go @@ -88,9 +88,6 @@ var ( const ( // PprofConfig - // DefaultPprofEnabled to indicate the pprof http server should be enabled or not. - DefaultPprofEnabled = false - // DefaultPprofListeningAddress default pprof HTTP server listening address. DefaultPprofListeningAddress = "localhost:6060" diff --git a/chain/polkadot/config.toml b/chain/polkadot/config.toml index afdb693abc1..26ae4ba747d 100644 --- a/chain/polkadot/config.toml +++ b/chain/polkadot/config.toml @@ -39,7 +39,6 @@ modules = ["system", "author", "chain", "state", "rpc", "grandpa", "offchain", " ws-port = 8546 [pprof] -enabled = false listening-address = "localhost:6060" block-rate = 0 mutex-rate = 0 diff --git a/chain/polkadot/defaults.go b/chain/polkadot/defaults.go index be9394f088d..6200e14175c 100644 --- a/chain/polkadot/defaults.go +++ b/chain/polkadot/defaults.go @@ -86,9 +86,6 @@ var ( const ( // PprofConfig - // DefaultPprofEnabled to indicate the pprof http server should be enabled or not. - DefaultPprofEnabled = false - // DefaultPprofListeningAddress default pprof HTTP server listening address. DefaultPprofListeningAddress = "localhost:6060" diff --git a/dot/config.go b/dot/config.go index f170975fd81..fd60d75f268 100644 --- a/dot/config.go +++ b/dot/config.go @@ -235,7 +235,6 @@ func GssmrConfig() *Config { WSPort: gssmr.DefaultRPCWSPort, }, Pprof: PprofConfig{ - Enabled: gssmr.DefaultPprofEnabled, Settings: pprof.Settings{ ListeningAddress: gssmr.DefaultPprofListeningAddress, BlockProfileRate: gssmr.DefaultPprofBlockRate, @@ -293,7 +292,6 @@ func KusamaConfig() *Config { WSPort: kusama.DefaultRPCWSPort, }, Pprof: PprofConfig{ - Enabled: kusama.DefaultPprofEnabled, Settings: pprof.Settings{ ListeningAddress: kusama.DefaultPprofListeningAddress, BlockProfileRate: kusama.DefaultPprofBlockRate, @@ -351,7 +349,6 @@ func PolkadotConfig() *Config { WSPort: polkadot.DefaultRPCWSPort, }, Pprof: PprofConfig{ - Enabled: polkadot.DefaultPprofEnabled, Settings: pprof.Settings{ ListeningAddress: polkadot.DefaultPprofListeningAddress, BlockProfileRate: polkadot.DefaultPprofBlockRate, @@ -414,7 +411,6 @@ func DevConfig() *Config { WS: dev.DefaultWSEnabled, }, Pprof: PprofConfig{ - Enabled: dev.DefaultPprofEnabled, Settings: pprof.Settings{ ListeningAddress: dev.DefaultPprofListeningAddress, BlockProfileRate: dev.DefaultPprofBlockRate,