[skip ci]Add comment for NewConsistentHashChannelPolicyFactory (#10131)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/10168/head
sunby 2021-10-19 14:42:42 +08:00 committed by GitHub
parent 9847063a40
commit 09435300b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ type ConsistentHashChannelPolicyFactory struct {
hashring *consistent.Consistent
}
// NewConsistentHashChannelPolicyFactory creates a new consistent hash policy factory instance
func NewConsistentHashChannelPolicyFactory(hashring *consistent.Consistent) *ConsistentHashChannelPolicyFactory {
return &ConsistentHashChannelPolicyFactory{
hashring: hashring,