style(gateway): apply erlfmt to the voice disconnect modules (#2602)

This commit is contained in:
Hampus
2026-09-08 19:29:38 +02:00
committed by GitHub
parent ce08f82a92
commit fda41bb57a
3 changed files with 6 additions and 3 deletions
-1
View File
@@ -442,4 +442,3 @@ check_pending_session_alive(ConnectionId, UserId, SessionId, SessionPid, State)
ConnectionId, UserId, SessionId, State ConnectionId, UserId, SessionId, State
) )
end. end.
@@ -395,7 +395,6 @@ bounded_put_new(Key, Value, Map, MaxSize) ->
Map#{Key => Value} Map#{Key => Value}
end. end.
-spec sweep_recently_disconnected(map()) -> map(). -spec sweep_recently_disconnected(map()) -> map().
sweep_recently_disconnected(State) -> sweep_recently_disconnected(State) ->
Cache = maps:get(recently_disconnected_voice_states, State, #{}), Cache = maps:get(recently_disconnected_voice_states, State, #{}),
@@ -99,7 +99,12 @@ disconnect_user_if_in_channel(UserId, ExpectedChannelId, VoiceStates, Sessions,
). ).
-spec disconnect_user_if_in_channel( -spec disconnect_user_if_in_channel(
user_id(), integer(), binary() | undefined, voice_states_map(), sessions_map(), cleanup_fun() user_id(),
integer(),
binary() | undefined,
voice_states_map(),
sessions_map(),
cleanup_fun()
) -> ) ->
{ok, voice_states_map(), sessions_map()} {ok, voice_states_map(), sessions_map()}
| {not_found, voice_states_map(), sessions_map()} | {not_found, voice_states_map(), sessions_map()}