nsqio / go-nsq

The official Go package for NSQ
MIT License
2.59k stars 444 forks source link

producer: expose cmd of struct ProducerTransaction #178

Closed FlamingTree closed 8 years ago

FlamingTree commented 8 years ago

if PublishAsync return error, I need to know which Command cause error, so it's better expose cmd of struct ProducerTransaction.

mreiferson commented 8 years ago

The idea is that you can use PublishAsync and pass args, which will be delivered over doneChan - e.g. you can use this to identify the command.