wolfstudy commented on pull request #507:
URL: https://github.com/apache/pulsar-client-go/pull/507#issuecomment-820869970


   The point is wrong, can MessageRouter not meet our functions?
   
   e.g:
   
   ```
        producer, err := client.CreateProducer(ProducerOptions{
                Topic: "my-partitioned-topic",
                MessageRouter: func(msg *ProducerMessage, tm TopicMetadata) int 
{
                        fmt.Println("Routing message ", msg, " -- Partitions: 
", tm.NumPartitions())
                        return 2
                },
        })
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to