feat(config): add startup_timeout option with context propagation (#739) (#750)
Docker / Build and Push (push) Canceled after 0s
github-pages / deploy (push) Canceled after 0s
Test / make test (push) Canceled after 0s
Docker / release (push) Canceled after 0s

This commit is contained in:
h44z
2026-09-02 22:28:51 +02:00
committed by GitHub
parent a2ee8d1e46
commit 4337fb7809
4 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -35,6 +35,7 @@ type App struct {
// Initialize creates a new App instance and initializes it.
func Initialize(
ctx context.Context,
cfg *config.Config,
wg WireGuardManager,
users UserManager,
@@ -46,7 +47,7 @@ func Initialize(
users: users,
}
startupContext, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
startupContext, cancel := context.WithTimeout(ctx, cfg.Advanced.StartupTimeout)
defer cancel()
// Switch to admin user context