Skip to content

Commit

Permalink
update error
Browse files Browse the repository at this point in the history
  • Loading branch information
gunli committed Jul 11, 2023
1 parent a6cca75 commit e72a275
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 @@ -1114,7 +1114,7 @@ func (p *partitionProducer) internalSendAsync(ctx context.Context, msg *Producer

if msg.Value != nil && msg.Payload != nil {
p.log.Error("Can not set Value and Payload both")
runCallback(callback, nil, msg, errors.New("can not set Value and Payload both"))
runCallback(callback, nil, msg, newError(InvalidMessage, "Can not set Value and Payload both"))
return
}

Expand Down

0 comments on commit e72a275

Please sign in to comment.