Skip to content

Commit 5f2654f

Browse files
committed
revert NewConfig incompatible change
1 parent f4c212e commit 5f2654f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dsn.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type Config struct {
8080
type option func(*Config) error
8181

8282
// NewConfig creates a new Config and sets default values.
83-
func NewConfig(opts ...option) *Config {
83+
func NewConfig() *Config {
8484
cfg := &Config{
8585
Loc: time.UTC,
8686
MaxAllowedPacket: defaultMaxAllowedPacket,
@@ -89,7 +89,6 @@ func NewConfig(opts ...option) *Config {
8989
CheckConnLiveness: true,
9090
}
9191

92-
cfg.SetOptions(opts...)
9392
return cfg
9493
}
9594

0 commit comments

Comments
 (0)