Skip to content

Commit daa0174

Browse files
committed
Add missing WithHandler call to DialHandler
This options was missed during the refactor.
1 parent cdbe383 commit daa0174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func Dial(address string, opts ...ConnOption) (*Conn, error) {
194194
//
195195
// Deprecated: use Dial with options instead.
196196
func DialHandler(address string, handler Handler, signalHandler SignalHandler) (*Conn, error) {
197-
return Dial(address, WithSignalHandler(signalHandler))
197+
return Dial(address, WithHandler(handler), WithSignalHandler(signalHandler))
198198
}
199199

200200
// ConnOption is a connection option.

0 commit comments

Comments
 (0)