Skip to content

Commit 2a2917d

Browse files
committed
Support lazy connections in publisher (Fixes #171)
1 parent 4ea8166 commit 2a2917d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RabbitMq/Producer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public function publish($msgBody, $routingKey = '', $additionalProperties = arra
4646
}
4747

4848
$msg = new AMQPMessage((string) $msgBody, array_merge($this->getBasicProperties(), $additionalProperties));
49-
$this->ch->basic_publish($msg, $this->exchangeOptions['name'], (string) $routingKey);
49+
$this->getChannel()->basic_publish($msg, $this->exchangeOptions['name'], (string) $routingKey);
5050
}
5151
}

0 commit comments

Comments
 (0)