fix: address code review findings

This commit is contained in:
2026-08-18 13:57:30 +03:00
parent 2cf9e20608
commit 48650d96cf
4 changed files with 31 additions and 11 deletions

View File

@@ -6,13 +6,6 @@ import (
"time"
)
// PreferenceKey defines the structure for preference cache keys.
type PreferenceKey struct {
UserID string // user identifier
Kind string // "saved_city" or "search_history"
CityCode string // city code for saved_city
}
// PreferenceSavedCity represents a user's saved city preference.
type PreferenceSavedCity struct {
CityCode string `json:"city_code"`

View File

@@ -1038,8 +1038,6 @@ func SelectHubStations(stations []StationInfo, minOutgoingFlights int) []*Node {
return hubs
}
// getStationNeighbors returns neighboring stations for a given station ID in the same city.
// RouteStatus represents the current status of a route leg.
type RouteStatus int32