[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:
Zoltan Papp
2026-07-01 16:53:42 +02:00
parent 50a29c07ce
commit 6774a43eae
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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.