File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ func (opt *Options) init() {
133
133
opt .DialTimeout = 5 * time .Second
134
134
}
135
135
if opt .Dialer == nil {
136
- opt .Dialer = DefaultDialer (opt )
136
+ opt .Dialer = NewDialer (opt )
137
137
}
138
138
if opt .PoolSize == 0 {
139
139
opt .PoolSize = 10 * runtime .GOMAXPROCS (0 )
@@ -189,9 +189,9 @@ func (opt *Options) clone() *Options {
189
189
return & clone
190
190
}
191
191
192
- // DefaultDialer returns a function that will be used as the default dialer
192
+ // NewDialer returns a function that will be used as the default dialer
193
193
// when none is specified in Options.Dialer.
194
- func DefaultDialer (opt * Options ) func (context.Context , string , string ) (net.Conn , error ) {
194
+ func NewDialer (opt * Options ) func (context.Context , string , string ) (net.Conn , error ) {
195
195
return func (ctx context.Context , network , addr string ) (net.Conn , error ) {
196
196
netDialer := & net.Dialer {
197
197
Timeout : opt .DialTimeout ,
You can’t perform that action at this time.
0 commit comments