Skip to content

Commit de86479

Browse files
committed
restored WithSessionPoolKeepAliveMinSize & WithSessionPoolKeepAliveTimeout
1 parent 72000e0 commit de86479

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

options.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,20 @@ func WithSessionPoolDeleteTimeout(deleteTimeout time.Duration) Option {
432432
}
433433
}
434434

435+
// WithSessionPoolKeepAliveMinSize set minimum sessions should be keeped alive in table.Client
436+
//
437+
// Deprecated: table client do not support background session keep-aliving now
438+
func WithSessionPoolKeepAliveMinSize(keepAliveMinSize int) Option {
439+
return func(ctx context.Context, c *Driver) error { return nil }
440+
}
441+
442+
// WithSessionPoolKeepAliveTimeout set timeout of keep alive requests for session in table.Client
443+
//
444+
// Deprecated: table client do not support background session keep-aliving now
445+
func WithSessionPoolKeepAliveTimeout(keepAliveTimeout time.Duration) Option {
446+
return func(ctx context.Context, c *Driver) error { return nil }
447+
}
448+
435449
// WithIgnoreTruncated disables errors on truncated flag
436450
func WithIgnoreTruncated() Option {
437451
return func(ctx context.Context, c *Driver) error {

0 commit comments

Comments
 (0)