reconnect timer + fixes
This commit is contained in:
parent
13ee3230e3
commit
42646a6a08
3 changed files with 71 additions and 21 deletions
|
|
@ -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}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue