Skip to content

Commit

Permalink
Remove default pprof enabled values
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Aug 25, 2022
1 parent a9160ac commit 5072400
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion chain/dev/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ modules = [
ws-port = 8546

[pprof]
enabled = false
listening-address = "localhost:6060"
block-rate = 0
mutex-rate = 0
3 changes: 0 additions & 3 deletions chain/dev/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion chain/gssmr/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ modules = [
ws-port = 8546

[pprof]
enabled = false
listening-address = "localhost:6060"
block-rate = 0
mutex-rate = 0
3 changes: 0 additions & 3 deletions chain/gssmr/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion chain/kusama/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ ws = false
ws-external = false

[pprof]
enabled = false
listening-address = "localhost:6060"
block-rate = 0
mutex-rate = 0
3 changes: 0 additions & 3 deletions chain/kusama/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion chain/polkadot/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions chain/polkadot/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 0 additions & 4 deletions dot/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ func GssmrConfig() *Config {
WSPort: gssmr.DefaultRPCWSPort,
},
Pprof: PprofConfig{
Enabled: gssmr.DefaultPprofEnabled,
Settings: pprof.Settings{
ListeningAddress: gssmr.DefaultPprofListeningAddress,
BlockProfileRate: gssmr.DefaultPprofBlockRate,
Expand Down Expand Up @@ -293,7 +292,6 @@ func KusamaConfig() *Config {
WSPort: kusama.DefaultRPCWSPort,
},
Pprof: PprofConfig{
Enabled: kusama.DefaultPprofEnabled,
Settings: pprof.Settings{
ListeningAddress: kusama.DefaultPprofListeningAddress,
BlockProfileRate: kusama.DefaultPprofBlockRate,
Expand Down Expand Up @@ -351,7 +349,6 @@ func PolkadotConfig() *Config {
WSPort: polkadot.DefaultRPCWSPort,
},
Pprof: PprofConfig{
Enabled: polkadot.DefaultPprofEnabled,
Settings: pprof.Settings{
ListeningAddress: polkadot.DefaultPprofListeningAddress,
BlockProfileRate: polkadot.DefaultPprofBlockRate,
Expand Down Expand Up @@ -414,7 +411,6 @@ func DevConfig() *Config {
WS: dev.DefaultWSEnabled,
},
Pprof: PprofConfig{
Enabled: dev.DefaultPprofEnabled,
Settings: pprof.Settings{
ListeningAddress: dev.DefaultPprofListeningAddress,
BlockProfileRate: dev.DefaultPprofBlockRate,
Expand Down

0 comments on commit 5072400

Please sign in to comment.