Skip to content

Commit 11321ed

Browse files
Refactor tx_pool_latency_analysis configuration to include QPS parameter and reorder fields for improved clarity
1 parent 5e3ded3 commit 11321ed

File tree

1 file changed

+6
-4
lines changed
  • pkg/coordinator/tasks/tx_pool_latency_analysis

1 file changed

+6
-4
lines changed

pkg/coordinator/tasks/tx_pool_latency_analysis/config.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@ package txpoollatencyanalysis
33
type Config struct {
44
PrivateKey string `yaml:"privateKey" json:"privateKey"`
55

6-
TxCount int `yaml:"txCount" json:"txCount"`
6+
QPS int `yaml:"qps" json:"qps"`
7+
TxCount int `yaml:"txCount" json:"txCount"`
78
MeasureInterval int `yaml:"measureInterval" json:"measureInterval"`
8-
HighLatency int64 `yaml:"highLatency" json:"highLatency"`
9+
HighLatency int64 `yaml:"highLatency" json:"highLatency"`
910
FailOnHighLatency bool `yaml:"failOnHighLatency" json:"failOnHighLatency"`
1011
SecondsBeforeRunning int64 `yaml:"secondsBeforeRunning" json:"secondsBeforeRunning"`
1112
}
1213

1314
func DefaultConfig() Config {
1415
return Config{
15-
TxCount: 1000,
16+
QPS: 1000,
17+
TxCount: 1000,
1618
MeasureInterval: 100,
17-
HighLatency: 5000, // in microseconds
19+
HighLatency: 5000, // in microseconds
1820
FailOnHighLatency: true,
1921
SecondsBeforeRunning: 0,
2022
}

0 commit comments

Comments
 (0)