mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-09-27 03:45:52 +08:00
Add secrets provider to streamd
This commit is contained in:
@@ -93,6 +93,9 @@ func main() {
|
||||
ctx := context.Background()
|
||||
ctx = logger.CtxWithLogger(ctx, l)
|
||||
|
||||
secretsProvider := observability.NewStaticSecretsProvider()
|
||||
ctx = observability.WithSecretsProvider(ctx, secretsProvider)
|
||||
|
||||
if *netPprofAddr != "" || (forceNetPProfOnAndroid && runtime.GOOS == "android") {
|
||||
observability.Go(ctx, func(ctx context.Context) {
|
||||
if *netPprofAddr == "" {
|
||||
|
Reference in New Issue
Block a user