From daa017464e266380cdeb4e6f9613eba9182b59a3 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 26 Oct 2021 10:35:01 -0700 Subject: [PATCH] Add missing WithHandler call to DialHandler This options was missed during the refactor. --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index 694e794..76fc5cd 100644 --- a/conn.go +++ b/conn.go @@ -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.