Skip to content

Commit

Permalink
bump proto, remove wifi outdoor support
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Sep 5, 2023
1 parent 722b3c9 commit 27bbd18
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion mobile_verifier/migrations/16_wifi_heartbeat.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ALTER TYPE cell_type ADD VALUE 'celltypenone' AFTER 'sercommoutdoor';
ALTER TYPE cell_type ADD VALUE 'novagenericwifiindoor' AFTER 'celltypenone';
ALTER TYPE cell_type ADD VALUE 'novagenericwifioutdoor' AFTER 'novagenericwifiindoor';

CREATE TABLE wifi_heartbeats (
hotspot_key TEXT NOT NULL,
Expand Down
4 changes: 0 additions & 4 deletions mobile_verifier/src/cell_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub enum CellType {
SercommOutdoor = 4,
CellTypeNone = 5,
NovaGenericWifiIndoor = 6,
NovaGenericWifiOutdoor = 7,
}

pub enum CellTypeLabel {
Expand Down Expand Up @@ -52,7 +51,6 @@ impl CellType {
Self::SercommOutdoor => CellTypeLabel::Cell,
Self::CellTypeNone => CellTypeLabel::None,
Self::NovaGenericWifiIndoor => CellTypeLabel::Wifi,
Self::NovaGenericWifiOutdoor => CellTypeLabel::Wifi,
}
}

Expand All @@ -65,7 +63,6 @@ impl CellType {
Self::SercommOutdoor => dec!(2.5),
Self::CellTypeNone => dec!(0.0),
Self::NovaGenericWifiIndoor => dec!(0.4),
Self::NovaGenericWifiOutdoor => dec!(1.0),
}
}

Expand All @@ -88,7 +85,6 @@ impl From<CellType> for CellTypeProto {
CellType::SercommOutdoor => Self::SercommOutdoor,
CellType::CellTypeNone => Self::None,
CellType::NovaGenericWifiIndoor => Self::NovaGenericWifiIndoor,
CellType::NovaGenericWifiOutdoor => Self::NovaGenericWifiOutdoor,
}
}
}

0 comments on commit 27bbd18

Please sign in to comment.