rm param
This commit is contained in:
@@ -36,7 +36,7 @@ type RecConn struct {
|
|||||||
// NonVerbose suppress connecting/reconnecting messages.
|
// NonVerbose suppress connecting/reconnecting messages.
|
||||||
NonVerbose bool
|
NonVerbose bool
|
||||||
// SubscribeHandler fires after the connection successfully establish.
|
// SubscribeHandler fires after the connection successfully establish.
|
||||||
SubscribeHandler func(rc *RecConn) error
|
SubscribeHandler func() error
|
||||||
|
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
url string
|
url string
|
||||||
@@ -299,7 +299,7 @@ func (rc *RecConn) connect() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := rc.SubscribeHandler(rc); err != nil {
|
if err := rc.SubscribeHandler(); err != nil {
|
||||||
log.Fatalf("Dial: connect handler failed with %s", err.Error())
|
log.Fatalf("Dial: connect handler failed with %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user