mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
style(gateway): apply erlfmt to the voice disconnect modules (#2602)
This commit is contained in:
@@ -442,4 +442,3 @@ check_pending_session_alive(ConnectionId, UserId, SessionId, SessionPid, State)
|
||||
ConnectionId, UserId, SessionId, State
|
||||
)
|
||||
end.
|
||||
|
||||
|
||||
@@ -395,7 +395,6 @@ bounded_put_new(Key, Value, Map, MaxSize) ->
|
||||
Map#{Key => Value}
|
||||
end.
|
||||
|
||||
|
||||
-spec sweep_recently_disconnected(map()) -> map().
|
||||
sweep_recently_disconnected(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(
|
||||
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()}
|
||||
| {not_found, voice_states_map(), sessions_map()}
|
||||
|
||||
Reference in New Issue
Block a user