fix: address code review findings
This commit is contained in:
@@ -211,7 +211,7 @@ func ProcessStation(ctx context.Context, monitor *StationMonitor) error {
|
||||
if err != nil {
|
||||
log.Printf("WARNING: failed to check schedule for station %s: %v", monitor.ID, err)
|
||||
// If API fails, don't change the status - keep current
|
||||
return nil
|
||||
return fmt.Errorf("failed to check schedule: %w", err)
|
||||
}
|
||||
|
||||
newStatus, err := monitor.updateStationStatus(ctx, tripCount)
|
||||
|
||||
Reference in New Issue
Block a user