[skip ci]Add comment for NewRegisterPolicy (#10132)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
sunby 2021-10-19 14:40:42 +08:00 committed by GitHub
parent ed4e516ce7
commit 9847063a40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,7 @@ func NewConsistentHashChannelPolicyFactory(hashring *consistent.Consistent) *Con
}
}
// NewRegisterPolicy create a new register policy
func (f *ConsistentHashChannelPolicyFactory) NewRegisterPolicy() RegisterPolicy {
return ConsistentHashRegisterPolicy(f.hashring)
}