otakulan/lanparty-seating

Ensure GenServer casts complete before continuing execution

Opened this issue · 0 comments

We have many places in the code base like:

GenServer.cast(:"expire_reservation_#{res.id}", :terminate)

which directly fire calls to GenServer.cast/2 which only guarantees that the message was fired off but not that the task has actually done its job.

We should refactor these calls (cc: @berbiche)