Skip to content

Commit

Permalink
fix ConnectAddresses speling, desiredLegs commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzilladev committed Feb 27, 2024
1 parent e3926df commit 70399c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion internal/tunnel/client/reconnecting.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ func (s *reconnectingSession) connect(acceptErr error, connSession *session) err
// check if more sessions need to be established
sendStateChange := true
if desiredLegs > len(s.sessions) {
// set up the next connection
// set up the next connection. additional sessions will
// continue to chain on from there until all legs are
// established
s.createTunnelClientSession(s)
// not done with initial setup yet
sendStateChange = false
Expand Down
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ func (s *sessionImpl) Heartbeat() (time.Duration, error) {
func (s *sessionImpl) Latency() <-chan time.Duration {
return s.inner().Latency()
}
func (s *sessionImpl) ConnectAddreses() []ConnectAddress {
func (s *sessionImpl) ConnectAddresses() []ConnectAddress {
connectAddresses := make([]ConnectAddress, len(s.inner().ConnectAddresses))
for i, addr := range s.inner().ConnectAddresses {
connectAddresses[i] = ConnectAddress(addr)
Expand Down

0 comments on commit 70399c7

Please sign in to comment.