reconnect timer + fixes

This commit is contained in:
nquidox 2026-02-21 15:03:43 +03:00
parent 13ee3230e3
commit 42646a6a08
3 changed files with 71 additions and 21 deletions

View file

@ -1,7 +1,6 @@
package rabbit
import (
"context"
amqp "github.com/rabbitmq/amqp091-go"
"log"
"os"
@ -68,6 +67,6 @@ func NewPublisher(client *Client) Publisher {
return &pubHandler{client: client}
}
func NewConsumer(ctx context.Context, client *Client, chanLen int) Consumer {
return &consumeHandler{ctx: ctx, client: client, chanLen: chanLen}
func NewConsumer(client *Client) Consumer {
return &consumeHandler{client: client}
}