Skip to content

Commit

Permalink
pkg/event: Fix waitResult logic in producer
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Nov 14, 2022
1 parent 147c919 commit c6aa7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/event/amqp_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (p *amqpProducer) Publish(ctx context.Context, msg AMQPMessage) error {
}
select {
case p.publishQ <- publish:
return nil
break // continue below
case <-ctx.Done():
return ctx.Err()
case <-p.shutdownStart:
Expand Down

0 comments on commit c6aa7ae

Please sign in to comment.