merlimat commented on a change in pull request #507:
URL: https://github.com/apache/pulsar-client-go/pull/507#discussion_r611882360
##########
File path: pulsar/producer.go
##########
@@ -199,3 +204,15 @@ type Producer interface {
// of errors, pending writes will not be retried.
Close()
}
+
+// GetHashingFunction return the corresponding hashing function for the
hashing scheme
+func GetHashingFunction(s HashingScheme) func(string) uint32 {
Review comment:
Why do we need to expose this publicly? An application is free to use a
custom message router function, at that point it can use any hashing function.
--
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]