mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 06:16:37 +08:00
03fa5d948d
Extract SyncEvents and InitLogWriter from router.Serve into bootstrap.Init called from cmd entry points with trace-aware context. Preserve existing Register* wiring for task and push domain integrations.
17 lines
351 B
Go
17 lines
351 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/Rain-kl/Wavelet/internal/bootstrap"
|
|
"github.com/Rain-kl/Wavelet/pkg/trace"
|
|
)
|
|
|
|
func runBootstrap(opts bootstrap.Options) {
|
|
ctx, span := trace.Start(context.Background(), "bootstrap.Init")
|
|
defer span.End()
|
|
bootstrap.Init(ctx, opts)
|
|
} |