mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-21 23:50:59 +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", %{})}
|
|> push_event("pong", %{})}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp handle_event(_, _, socket), do: {:cont, socket}
|
||||||
|
|
||||||
defp rate_limited_ping_broadcast(socket, %Accounts.User{} = user, rtt) when is_integer(rtt) do
|
defp rate_limited_ping_broadcast(socket, %Accounts.User{} = user, rtt) when is_integer(rtt) do
|
||||||
now = System.system_time(:millisecond)
|
now = System.system_time(:millisecond)
|
||||||
last_ping_at = socket.assigns[:last_ping_at]
|
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 rate_limited_ping_broadcast(socket, _user, _rtt), do: socket
|
||||||
|
|
||||||
defp handle_event(_, _, socket), do: {:cont, socket}
|
|
||||||
|
|
||||||
defp current_user_profile_username(socket) do
|
defp current_user_profile_username(socket) do
|
||||||
if user = socket.assigns.current_user do
|
if user = socket.assigns.current_user do
|
||||||
user.username
|
user.username
|
||||||
|
|
Loading…
Reference in a new issue