Skip to content

Commit e553617

Browse files
committed
add WithInsecure()
1 parent 14e96fe commit e553617

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.8.6
2+
* Added `ydb.WithInsecure()` option
3+
14
## 3.8.5
25
* Fixed version
36

internal/meta/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package meta
22

33
const (
4-
Version = "ydb-go-sdk/3.8.5"
4+
Version = "ydb-go-sdk/3.8.6"
55
)

options.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ func WithSecure(secure bool) Option {
7777
}
7878
}
7979

80+
func WithInsecure() Option {
81+
return func(ctx context.Context, c *connection) error {
82+
c.options = append(c.options, config.WithSecure(false))
83+
return nil
84+
}
85+
}
86+
8087
type Level logger.Level
8188

8289
const (

0 commit comments

Comments
 (0)