go-nsq icon indicating copy to clipboard operation
go-nsq copied to clipboard

Results 3 go-nsq issues
Sort by recently updated
recently updated
newest added

add producerMgr pub with timeout func

内部带timeout 的 pub函数,好像只是用了 config里的timeout,没有在对外暴露的 Publish函数里提供timeout 参数。这是为什么呢,有什么考虑吗? ` # producer.go line 1671 func (self *TopicProducerMgr) doCommandWithRetry(topic string, partitionKey []byte, commandFunc CmdFuncT) ([]byte, error) { return self.doCommandWithTimeoutAndRetry(topic, partitionKey, 0, 3, commandFunc) }...

https://github.com/nsqio/go-nsq/blob/d71fb89c9e0263aaed89645b0b168e11ccf597b1/producer.go#L201