This commit is contained in:
seydx
2025-05-20 13:59:46 +02:00
parent e5e55b7a50
commit a2beea1bbd
2 changed files with 13 additions and 6 deletions
+3 -6
View File
@@ -47,7 +47,7 @@ func GetProducer(url string) (core.Producer, error) {
}
if handler, ok := handlers[scheme]; ok {
parsedURL := ParseURL(url)
parsedURL := app.ResolveSecrets(url)
return handler(parsedURL)
}
}
@@ -91,13 +91,10 @@ func GetConsumer(url string) (core.Consumer, func(), error) {
scheme := url[:i]
if handler, ok := consumerHandlers[scheme]; ok {
return handler(url)
parsedURL := app.ResolveSecrets(url)
return handler(parsedURL)
}
}
return nil, nil, errors.New("streams: unsupported scheme: " + url)
}
func ParseURL(url string) string {
return app.ResolveSecrets(url)
}