fix
This commit is contained in:
parent
9a11599bc1
commit
f2c4dc97e7
|
@ -6,10 +6,11 @@ import (
|
|||
"errors"
|
||||
"fusenapi/constants"
|
||||
"fusenapi/utils/mq_consumer_factory"
|
||||
"github.com/streadway/amqp"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"log"
|
||||
"sync"
|
||||
|
||||
"github.com/streadway/amqp"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type RabbitMqHandle struct {
|
||||
|
@ -25,9 +26,6 @@ type queueItem struct {
|
|||
var mapMq = make(map[constants.RABBIT_MQ]queueItem)
|
||||
|
||||
func InitRabbitMq(url string, config *tls.Config) *RabbitMqHandle {
|
||||
if url == "" {
|
||||
return nil
|
||||
}
|
||||
conn, err := amqp.DialTLS(url, config)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to connect to RabbitMQ: %v", err)
|
||||
|
|
|
@ -10,7 +10,7 @@ Auth:
|
|||
AccessSecret: fusen2023
|
||||
AccessExpire: 2592000
|
||||
RefreshAfter: 1592000
|
||||
SourceRabbitMq: #amqp://rabbit001:rabbit001129@110.41.19.98:5672
|
||||
SourceRabbitMq: amqp://rabbit001:rabbit001129@110.41.19.98:5672
|
||||
AWS:
|
||||
S3:
|
||||
Credentials:
|
||||
|
|
Loading…
Reference in New Issue
Block a user