-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Move StopTimeUpdates storage into a new GenServer #483
Conversation
lib/realtime/server.ex
Outdated
@spec update( | ||
{:stop_time_updates, StopTimeUpdates.stop_time_updates_by_trip()}, | ||
GenServer.server() | ||
) :: term() | ||
def update(update_term, server \\ __MODULE__) | ||
|
||
def update({:vehicle_positions, vehicles_by_route_id, shuttles}, server) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Server.update()
can shed its :vehicle_positions
tag now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, removed.
stop_time_updates_by_trip: StopTimeUpdates.stop_time_updates_by_trip() | ||
} | ||
|
||
defstruct stop_time_updates_by_trip: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defstruct stop_time_updates_by_trip: [] | |
defstruct stop_time_updates_by_trip: %{} |
348bbf0
to
9641c43
Compare
Codecov Report
@@ Coverage Diff @@
## master #483 +/- ##
==========================================
- Coverage 97.42% 97.42% -0.01%
==========================================
Files 162 163 +1
Lines 3657 3649 -8
Branches 485 485
==========================================
- Hits 3563 3555 -8
Misses 90 90
Partials 4 4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is codecov saying that 100% coverage of this code isn't enough?
Asana ticket: Refactor: Move StopTimeUpdates storage into a new GenServer