Skip to content

Commit

Permalink
Fixed dialer passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Fisk authored and Adam Fisk committed Nov 13, 2024
1 parent de764f1 commit 5c7fd19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dialer/fastconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (fcd *fastConnectDialer) onConnected(pd ProxyDialer, connectTime time.Durat
log.Debugf("Setting new top dialer to %v", newTopDialer.Name())
fcd.topDialer.set(newTopDialer)
}
fcd.onSuccess(td)
fcd.onSuccess(fcd.topDialer.get())
log.Debug("Finished adding connected dialer")
}

Expand Down
2 changes: 1 addition & 1 deletion dialer/two_phase_dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type twoPhaseDialer struct {

// NewTwoPhaseDialer creates a new dialer for checking proxy connectivity.
func NewTwoPhaseDialer(opts *Options, next func(opts *Options, existing Dialer) Dialer) Dialer {
log.Debugf("Creating new fast dialer with %d dialers", len(opts.Dialers))
log.Debugf("Creating new two phase dialer with %d dialers", len(opts.Dialers))

tpd := &twoPhaseDialer{}

Expand Down

0 comments on commit 5c7fd19

Please sign in to comment.