mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
Add deliveryMode parameter for AMQP notfication target (#4008)
Configuration migration was done. Also adds documentation about AMQP configuration parameters. Fixes #3982
This commit is contained in:
committed by
Harshavardhana
parent
5cec6bd80d
commit
096427f973
+4
-2
@@ -32,6 +32,7 @@ type amqpNotify struct {
|
||||
Exchange string `json:"exchange"`
|
||||
RoutingKey string `json:"routingKey"`
|
||||
ExchangeType string `json:"exchangeType"`
|
||||
DeliveryMode uint8 `json:"deliveryMode"`
|
||||
Mandatory bool `json:"mandatory"`
|
||||
Immediate bool `json:"immediate"`
|
||||
Durable bool `json:"durable"`
|
||||
@@ -145,8 +146,9 @@ func (q amqpConn) Fire(entry *logrus.Entry) error {
|
||||
q.params.Mandatory,
|
||||
q.params.Immediate,
|
||||
amqp.Publishing{
|
||||
ContentType: "application/json",
|
||||
Body: []byte(body),
|
||||
ContentType: "application/json",
|
||||
DeliveryMode: q.params.DeliveryMode,
|
||||
Body: []byte(body),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user