Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew committed Aug 8, 2024
1 parent c4ec9a0 commit 10fbc02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/turn_junebug_expressway/message_recipient_id_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmodule TurnJunebugExpressway.MessageRecipientIdCache do
state = %{}
{:ok, state}
end

# Setting the same key multiple times, does not extend its lifetime---each call schedules a new expiry
def handle_call({:put, key, value, ttl}, _from, state) do
Process.send_after(self(), {:expire, key}, ttl)
Expand Down

0 comments on commit 10fbc02

Please sign in to comment.