dfile updates
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 4m52s
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 4m52s
This commit is contained in:
parent
0b2859a9cb
commit
cc301dd1b8
3 changed files with 6 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ COPY ./api/assets ./assets
|
||||||
COPY ./api/templates ./templates
|
COPY ./api/templates ./templates
|
||||||
|
|
||||||
|
|
||||||
RUN apt -y update && apt install -y libssl-dev libc-dev sccache build-essential pkg-config
|
RUN apt -y update && apt install -y libssl-dev protobuf-compiler libc-dev sccache build-essential pkg-config
|
||||||
RUN cd api && cargo build --release
|
RUN cd api && cargo build --release
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,8 @@ impl TripTrackingService {
|
||||||
} else {
|
} else {
|
||||||
TripTracking::Tracked(
|
TripTracking::Tracked(
|
||||||
LiveTrip {
|
LiveTrip {
|
||||||
|
trip_id: live_track.trip_id,
|
||||||
|
route_id: live_track.route_id,
|
||||||
delay: live_track.delay,
|
delay: live_track.delay,
|
||||||
next_stop_id: match live_track.next_stop_id {
|
next_stop_id: match live_track.next_stop_id {
|
||||||
Some(x) => match x.parse() {
|
Some(x) => match x.parse() {
|
||||||
|
|
|
||||||
|
|
@ -30,5 +30,7 @@ pub struct LiveTrip {
|
||||||
pub delay: f64,
|
pub delay: f64,
|
||||||
pub next_stop_id: Option<i64>,
|
pub next_stop_id: Option<i64>,
|
||||||
pub timestamp: i64,
|
pub timestamp: i64,
|
||||||
pub vehicle_ids: Vec<String>
|
pub vehicle_ids: Vec<String>,
|
||||||
|
pub trip_id: String,
|
||||||
|
pub route_id: String,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue