[skip ci] Fix golint error in pulsar_client.go (#9155)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2021-10-03 20:54:13 +08:00 committed by GitHub
parent 405fe29b0b
commit 057317f8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,8 @@ type pulsarClient struct {
var sc *pulsarClient
var once sync.Once
// GetPulsarClientInstance creates a pulsarClient object
// according to the parameter opts of type pulsar.ClientOptions
func GetPulsarClientInstance(opts pulsar.ClientOptions) (*pulsarClient, error) {
once.Do(func() {
c, err := pulsar.NewClient(opts)