mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-24 17:01:00 +00:00
Fix warning
This commit is contained in:
parent
d9b63adb85
commit
0b6774e5b1
1 changed files with 2 additions and 2 deletions
|
@ -38,6 +38,8 @@ defmodule LiveBeatsWeb.Nav do
|
|||
|> push_event("pong", %{})}
|
||||
end
|
||||
|
||||
defp handle_event(_, _, socket), do: {:cont, socket}
|
||||
|
||||
defp rate_limited_ping_broadcast(socket, %Accounts.User{} = user, rtt) when is_integer(rtt) do
|
||||
now = System.system_time(:millisecond)
|
||||
last_ping_at = socket.assigns[:last_ping_at]
|
||||
|
@ -52,8 +54,6 @@ defmodule LiveBeatsWeb.Nav do
|
|||
|
||||
defp rate_limited_ping_broadcast(socket, _user, _rtt), do: socket
|
||||
|
||||
defp handle_event(_, _, socket), do: {:cont, socket}
|
||||
|
||||
defp current_user_profile_username(socket) do
|
||||
if user = socket.assigns.current_user do
|
||||
user.username
|
||||
|
|
Loading…
Reference in a new issue