Skip to content

Commit

Permalink
Fix cnx
Browse files Browse the repository at this point in the history
  • Loading branch information
nodece committed Jul 12, 2024
1 parent e7847b4 commit 7cb37cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar/producer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func (p *partitionProducer) grabCnx(assignedBrokerURL string) error {
p.log.WithError(err).Error("Failed to create producer at send PRODUCER request")
if errors.Is(err, internal.ErrRequestTimeOut) {
id := p.client.rpcClient.NewRequestID()
_, _ = p.client.rpcClient.RequestOnCnx(res.Cnx, id, pb.BaseCommand_CLOSE_PRODUCER,
_, _ = p.client.rpcClient.RequestOnCnx(cnx, id, pb.BaseCommand_CLOSE_PRODUCER,
&pb.CommandCloseProducer{
ProducerId: &p.producerID,
RequestId: &id,
Expand Down

0 comments on commit 7cb37cd

Please sign in to comment.