mirror of
https://github.com/datarhei/core.git
synced 2025-10-06 08:27:08 +08:00
Add CORE_CLUSTER_STARTUP_TIMEOUT_SEC configuration value
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user