Skip to content

Commit

Permalink
Add missing WithHandler call to DialHandler
Browse files Browse the repository at this point in the history
This options was missed during the refactor.
  • Loading branch information
jsouthworth committed Oct 26, 2021
1 parent cdbe383 commit daa0174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func Dial(address string, opts ...ConnOption) (*Conn, error) {
//
// Deprecated: use Dial with options instead.
func DialHandler(address string, handler Handler, signalHandler SignalHandler) (*Conn, error) {
return Dial(address, WithSignalHandler(signalHandler))
return Dial(address, WithHandler(handler), WithSignalHandler(signalHandler))
}

// ConnOption is a connection option.
Expand Down

0 comments on commit daa0174

Please sign in to comment.