Skip to content

Commit e37ebc8

Browse files
committed
AMQP 1.0 consumer: WriteQueueDepth: 10
the speeds up consumption
1 parent 42f1c45 commit e37ebc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/amqp10/consumer.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ func (c *Amqp10Consumer) Connect() {
7373
c.whichUri++
7474
hostname, vhost := hostAndVHost(uri)
7575
conn, err := amqp.Dial(c.ctx, uri, &amqp.ConnOptions{
76-
ContainerID: utils.InjectId(c.Config.ConsumerId, c.Id),
77-
SASLType: amqp.SASLTypeAnonymous(),
78-
HostName: vhost,
76+
ContainerID: utils.InjectId(c.Config.ConsumerId, c.Id),
77+
SASLType: amqp.SASLTypeAnonymous(),
78+
HostName: vhost,
79+
WriteQueueDepth: 10,
7980
TLSConfig: &tls.Config{
8081
ServerName: hostname,
8182
},

0 commit comments

Comments
 (0)