Add CORE_CLUSTER_STARTUP_TIMEOUT_SEC configuration value

This commit is contained in:
Ingo Oppermann
2023-06-28 11:41:24 +02:00
parent 64112ca2b0
commit 72a0566bc6
3 changed files with 3 additions and 2 deletions

View File

@@ -447,7 +447,7 @@ func (a *api) start(ctx context.Context) error {
})
}
ctx, cancel := context.WithTimeout(ctx, 5*time.Minute)
ctx, cancel := context.WithTimeout(ctx, time.Duration(cfg.Cluster.StartupTimeout)*time.Second)
defer cancel()
cluster, err := cluster.New(ctx, cluster.Config{