mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
3b5ce73ded
See also #31007 This PR: - Add param item for connection manager behavior: TTL & check interval - Change clientInfo map to concurrent map --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
15 lines
311 B
Go
15 lines
311 B
Go
package connection
|
|
|
|
import "sync"
|
|
|
|
var connectionManagerInstance *connectionManager
|
|
|
|
var getConnectionManagerInstanceOnce sync.Once
|
|
|
|
func GetManager() *connectionManager {
|
|
getConnectionManagerInstanceOnce.Do(func() {
|
|
connectionManagerInstance = newConnectionManager()
|
|
})
|
|
return connectionManagerInstance
|
|
}
|