@@ -40,18 +40,14 @@ type Config struct {
4040 GrpcOptions []grpc.DialOption
4141 // Whether to check compatibility between server's version and client's. Defaults to false.
4242 SkipCompatibilityCheck bool
43- // If set, the client is configured for connection with Qdrant Cloud,
44- // changing some defaults for optimized resilience and performance.
45- // If not set, the client behaves as for a local Qdrant installation (default).
46- Cloud bool
4743 // PoolSize specifies the number of connections to create.
48- // If 0, the default of 1 will be used for local mode, and 3 for Cloud mode .
44+ // If 0, the default of 3 will be used.
4945 // If 1 a single connection is used (aka no pool).
5046 // If greater than 1, a pool of connections is created and requests are distributed in a round-robin fashion.
5147 PoolSize uint
5248 // KeepAliveTime specifies the duration after which if the client does not see any activity (in seconds),
5349 // it pings the server to check if the transport is still alive.
54- // If 0, the default is disabled for local mode, and 10 seconds for Cloud mode .
50+ // If 0, the default is 10 seconds.
5551 // If set to -1, keepalive is disabled.
5652 KeepAliveTime int
5753 // KeepAliveTimeout specifies the duration the client waits for a response from the server after
@@ -77,12 +73,11 @@ func (c *Config) getAddr() string {
7773
7874// Internal method.
7975func (c * Config ) getKeepAliveParams () []grpc.DialOption {
80- if c .KeepAliveTime == - 1 ||
81- (! c .Cloud && c .KeepAliveTime == 0 ) {
76+ if c .KeepAliveTime == - 1 {
8277 // Disabled
8378 return nil
8479 }
85- // We run in cloud, or local and have an explicit keep alive time
80+ // Default to 10 seconds
8681 keepAliveTime := 10
8782 if c .KeepAliveTime > 0 {
8883 keepAliveTime = c .KeepAliveTime
0 commit comments