feat(rabbitmq): lab7 authenticate API and worker with client certificates

This commit is contained in:
Голиков Maximillian Антон
2026-11-29 11:44:03 +03:00
parent b55d9eb6dc
commit 58f3860b00
8 changed files with 80 additions and 5 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ import (
"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/trace"
"high-loud-apps-labs/internal/broker"
"high-loud-apps-labs/internal/config"
"high-loud-apps-labs/internal/domain"
"high-loud-apps-labs/internal/storage/postgres"
@@ -110,7 +111,7 @@ func main() {
}
func runWorker(ctx context.Context, cfg *config.Config, pipeline *worker.Pipeline, busy metric.Int64UpDownCounter) error {
conn, err := amqp.Dial(cfg.RabbitMQURL)
conn, err := broker.Dial(cfg.RabbitMQURL)
if err != nil {
return err
}