Skip to content

Commit

Permalink
Fix nil point exception
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd committed Feb 26, 2025
1 parent cec93f0 commit 29cb448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulsar/consumer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,9 @@ func (pc *partitionConsumer) internalUnsubscribe(unsub *unsubscribeRequest) {

func (pc *partitionConsumer) getLastMessageID() (*trackingMessageID, error) {
res, err := pc.getLastMessageIDAndMarkDeletePosition()
if err != nil {
return nil, err
}
return res.msgID, err
}

Expand Down

0 comments on commit 29cb448

Please sign in to comment.