change name
All checks were successful
Build and Publish / Metadata (push) Successful in 13s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 51s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m55s

This commit is contained in:
matst80
2025-11-11 17:27:05 +01:00
parent 6d9f9bec11
commit e0d8afae92
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ func NewAmqpOrderHandler(conn *amqp.Connection) *AmqpOrderHandler {
}
}
func (h *AmqpOrderHandler) DefineTopics() error {
func (h *AmqpOrderHandler) DefineQueue() error {
ch, err := h.conn.Channel()
if err != nil {
return fmt.Errorf("failed to open a channel: %w", err)

View File

@@ -42,7 +42,7 @@ func (a *App) HandleCheckoutRequests(amqpUrl string, mux *http.ServeMux, invento
amqpListener.DefineTopics()
a.pool.AddListener(amqpListener)
orderHandler := NewAmqpOrderHandler(conn)
orderHandler.DefineTopics()
orderHandler.DefineQueue()
mux.HandleFunc("/push", func(w http.ResponseWriter, r *http.Request) {
log.Printf("Klarna order confirmation push, method: %s", r.Method)