Skip to content

Commit

Permalink
fix(rabbitmq-rpc): Fix channel initialization for message publishing. (
Browse files Browse the repository at this point in the history
…ovh#809)

* fix(rabbitmq-rpc): Fix channel initialization for message publishing.

Signed-off-by: Tomaž Završnik <[email protected]>
  • Loading branch information
docknight authored Aug 30, 2024
1 parent 5e480f0 commit aae6f3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executors/rabbitmq/rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ func (e Executor) publishMessages(ctx context.Context, workdir string, connectio
var ch *amqp.Channel
var err error
if connection == nil || channel == nil {
ch, conn, err := e.openChannel(ctx)
var conn *amqp.Connection
conn, ch, err = e.openChannel(ctx)
if err != nil {
return err
}
Expand Down

0 comments on commit aae6f3a

Please sign in to comment.