We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4c212e commit 5f2654fCopy full SHA for 5f2654f
dsn.go
@@ -80,7 +80,7 @@ type Config struct {
80
type option func(*Config) error
81
82
// NewConfig creates a new Config and sets default values.
83
-func NewConfig(opts ...option) *Config {
+func NewConfig() *Config {
84
cfg := &Config{
85
Loc: time.UTC,
86
MaxAllowedPacket: defaultMaxAllowedPacket,
@@ -89,7 +89,6 @@ func NewConfig(opts ...option) *Config {
89
CheckConnLiveness: true,
90
}
91
92
- cfg.SetOptions(opts...)
93
return cfg
94
95
0 commit comments