Skip to content

Commit

Permalink
pkg/event: Set mandatory field in simple producer
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Dec 7, 2022
1 parent c74a21c commit f83335c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/event/simple_producers.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewAMQPExchangeProducer(ctx context.Context, uri, exchange, keyNs string) (
if keyNs != "" {
key = keyNs + "." + key
}
return producer.Publish(ctx, AMQPMessage{exchange, key, body, persistent, nil, true})
return producer.Publish(ctx, AMQPMessage{exchange, key, body, persistent, false, nil, true})
}), nil
}

Expand All @@ -50,7 +50,7 @@ func NewAMQPQueueProducer(ctx context.Context, uri, queue string) (SimpleProduce
if key != "" {
return errors.New("when sending directly to a queue, key must always be empty")
}
return producer.Publish(ctx, AMQPMessage{"", queue, body, persistent, nil, true})
return producer.Publish(ctx, AMQPMessage{"", queue, body, persistent, false, nil, true})
}), nil
}

Expand Down

0 comments on commit f83335c

Please sign in to comment.