mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-11-24 03:11:17 -08:00
style(gateway): apply erlfmt to the voice disconnect modules (#2602)
This commit is contained in:
1 parent
ce08f82a92
commit
fda41bb57a
3 files changed
+6
-3
No files matched your search
@@ -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