Skip to content

Commit

Permalink
Minro improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vtm9 committed Dec 3, 2023
1 parent d846c69 commit eb09bf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ defmodule Codebattle.Tournament.Server do
def init(tournament_id) do
players_table = Tournament.Players.create_table()
matches_table = Tournament.Matches.create_table()
tasks_table = Tournament.Tasks.create_table()

Codebattle.PubSub.subscribe("game:tournament:#{tournament_id}")

Expand Down
2 changes: 1 addition & 1 deletion services/app/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ config :codebattle, CodebattleWeb.Endpoint,
port: System.get_env("CODEBATTLE_PORT", "4000"),
transport_options: [
max_connections: 30000,
num_acceptors: 500
num_acceptors: 5000
]
],
url: [
Expand Down
2 changes: 1 addition & 1 deletion services/app/config/releases.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ config :codebattle, Codebattle.Repo,
password: System.get_env("CODEBATTLE_DB_PASSWORD"),
hostname: System.get_env("CODEBATTLE_DB_HOSTNAME"),
database: System.get_env("CODEBATTLE_DB_NAME"),
pool_size: 10,
pool_size: "CODEBATTLE_POOL_SIZE" |> System.get_env("10") |> String.to_integer(),
log_level: :error

config :codebattle, :oauth,
Expand Down

0 comments on commit eb09bf6

Please sign in to comment.