ackReq Variable Assignment in Code
zhangweiii opened this issue · 1 comments
zhangweiii commented
pulsar-client-go/pulsar/consumer_partition.go
Lines 731 to 748 in 827d682
Hi, I noticed an issue in the code at line 733 where ackReq is assigned using :=, which creates a new variable. This results in ackReq always being nil, and consequently, the code at line 748 never gets executed. Shouldn't the check for ackReq.Err be placed after line 743 instead? OR use =
instead :=
crossoverJie commented
@zhangweiii Thank you for the feedback on this issue.