Skip to content

Commit c1916d3

Browse files
committed
hardfork test: rename cli arg graphql-max-retries ->
`client-max-retries`
1 parent 218b947 commit c1916d3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/app/hardfork_test/src/internal/app/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func init() {
8484
rootCmd.Flags().IntVar(&cfg.UserCommandCheckMaxIterations, "user-command-check-max-iterations", cfg.UserCommandCheckMaxIterations, "Max iterations to check for user commands in blocks")
8585
rootCmd.Flags().IntVar(&cfg.ForkEarliestBlockMaxRetries, "fork-earliest-block-max-retries", cfg.ForkEarliestBlockMaxRetries, "Maximum number of retries to wait for earliest block in fork network")
8686
rootCmd.Flags().IntVar(&cfg.HTTPClientTimeoutSeconds, "http-timeout", cfg.HTTPClientTimeoutSeconds, "HTTP client timeout in seconds for GraphQL requests")
87-
rootCmd.Flags().IntVar(&cfg.GraphQLMaxRetries, "graphql-max-retries", cfg.GraphQLMaxRetries, "Maximum number of retries for GraphQL requests")
87+
rootCmd.Flags().IntVar(&cfg.ClientMaxRetries, "client-max-retries", cfg.ClientMaxRetries, "Maximum number of retries for client requests")
8888

8989
// Mark required flags
9090
rootCmd.MarkFlagRequired("main-mina-exe")

src/app/hardfork_test/src/internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type Config struct {
6060
UserCommandCheckMaxIterations int // Max iterations to check for user commands in blocks
6161
ForkEarliestBlockMaxRetries int // Max retries to wait for earliest block in fork network
6262
HTTPClientTimeoutSeconds int // HTTP client timeout for GraphQL requests
63-
GraphQLMaxRetries int // Max number of retries for GraphQL requests
63+
ClientMaxRetries int // Max number of retries for client requests
6464
}
6565

6666
// DefaultConfig returns the default configuration with values
@@ -87,7 +87,7 @@ func DefaultConfig() *Config {
8787
ForkEarliestBlockMaxRetries: 10,
8888
HTTPClientTimeoutSeconds: 600,
8989
// ^ fork config take really long time to complete (2-3 minutes)
90-
GraphQLMaxRetries: 5,
90+
ClientMaxRetries: 5,
9191

9292
SeedStartPort: 3000,
9393
SnarkCoordinatorPort: 7000,

src/app/hardfork_test/src/internal/hardfork/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func NewHardforkTest(cfg *config.Config) *HardforkTest {
3131
ctx, cancel := context.WithCancel(context.Background())
3232
return &HardforkTest{
3333
Config: cfg,
34-
Client: client.NewClient(cfg.HTTPClientTimeoutSeconds, cfg.GraphQLMaxRetries),
34+
Client: client.NewClient(cfg.HTTPClientTimeoutSeconds, cfg.ClientMaxRetries),
3535
Logger: utils.NewLogger(),
3636
ScriptDir: cfg.ScriptDir,
3737
runningCmds: make([]*exec.Cmd, 0),

0 commit comments

Comments
 (0)