mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-07 22:19:08 +02:00
[relay] Rename ConnRacer to FallbackOpener and align file names with types
Rename the ConnRacer type to FallbackOpener and its constructor to NewFallbackOpener. Rename fallback.go to fallback_opener.go and foreign_relays.go to foreign_relays_store.go so file names mirror their primary struct.
This commit is contained in:
@@ -159,8 +159,8 @@ func (m *Manager) OpenConn(ctx context.Context, remoteRelayServer RelayServer, p
|
||||
return m.relayClient.OpenConn(ctx, peerKey)
|
||||
}
|
||||
|
||||
racer := NewConnRacer(m.relayClient, m.foreign)
|
||||
return racer.Run(ctx, peerKey, remoteRelayServer, preferForeign)
|
||||
opener := NewFallbackOpener(m.relayClient, m.foreign)
|
||||
return opener.Run(ctx, peerKey, remoteRelayServer, preferForeign)
|
||||
}
|
||||
|
||||
// Ready returns true if the home Relay client is connected to the relay server.
|
||||
|
||||
Reference in New Issue
Block a user