mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
[skip ci] Fix golint error in pulsar_client.go (#9155)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
parent
405fe29b0b
commit
057317f8b2
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user