Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/realtime/tenants/connect.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ defmodule Realtime.Tenants.Connect do
alias DBConnection.Backoff

@rpc_timeout_default 30_000
@check_connected_user_interval_default 50_000
@connected_users_bucket_shutdown [0, 0, 0, 0, 0, 0]
@check_connected_user_interval_default :timer.seconds(60)
@connected_users_bucket_shutdown [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
@type t :: %__MODULE__{
tenant_id: binary(),
db_conn_reference: reference(),
Expand Down Expand Up @@ -482,7 +482,7 @@ defmodule Realtime.Tenants.Connect do
defp update_connected_users_bucket(tenant_id, connected_users_bucket) do
connected_users_bucket
|> then(&(&1 ++ [UsersCounter.tenant_users(tenant_id)]))
|> Enum.take(-6)
|> Enum.take(-11)
end

defp send_connected_user_check_message(
Expand Down
Loading