feat(rabbitmq): lab7 authenticate API and worker with client certificates
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user