diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f9f5cf75..b6746f299 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +* Restored `WithSessionPoolKeepAliveMinSize` and `WithSessionPoolKeepAliveTimeout` for backward compatibility. * Fixed leak timers * Changed default StartTime (time of retries for connect to server) for topic writer from 1 minute to infinite (can be overrided by WithWriterStartTimeout topic option) * Added `Struct` support for `Variant` in `ydb.ParamsBuilder()` diff --git a/options.go b/options.go index 9734b9b75..23d0ef1ee 100644 --- a/options.go +++ b/options.go @@ -432,6 +432,20 @@ func WithSessionPoolDeleteTimeout(deleteTimeout time.Duration) Option { } } +// WithSessionPoolKeepAliveMinSize set minimum sessions should be keeped alive in table.Client +// +// Deprecated: table client do not support background session keep-aliving now +func WithSessionPoolKeepAliveMinSize(keepAliveMinSize int) Option { + return func(ctx context.Context, c *Driver) error { return nil } +} + +// WithSessionPoolKeepAliveTimeout set timeout of keep alive requests for session in table.Client +// +// Deprecated: table client do not support background session keep-aliving now +func WithSessionPoolKeepAliveTimeout(keepAliveTimeout time.Duration) Option { + return func(ctx context.Context, c *Driver) error { return nil } +} + // WithIgnoreTruncated disables errors on truncated flag func WithIgnoreTruncated() Option { return func(ctx context.Context, c *Driver) error {