Skip to content

Commit

Permalink
Merge pull request #4480 from santiment/move-endpoint-further-down-in…
Browse files Browse the repository at this point in the history
…-start-sequence

Move endpoint further down in start sequence
  • Loading branch information
tspenov authored Nov 21, 2024
2 parents 1de35c1 + a7c2579 commit 4c20ff1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/sanbase/application/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -300,21 +300,12 @@ defmodule Sanbase.Application do
# Start the clickhouse read-only repos for different plans
clickhouse_readonly_per_plan_children,

# Start the PubSub
{Phoenix.PubSub, name: Sanbase.PubSub},

# Start the Presence
SanbaseWeb.Presence,

# Start the endpoint when the application starts
SanbaseWeb.Endpoint,
# Start the Task Supervisor
{Task.Supervisor, [name: Sanbase.TaskSupervisor]},

# Star the API call service
Sanbase.ApiCallLimit.ETS,

# Start the Task Supervisor
{Task.Supervisor, [name: Sanbase.TaskSupervisor]},

# Start telegram rate limiter. Used both in web and alerts
Sanbase.ExternalServices.RateLimiting.Server.child_spec(
:telegram_bot_rate_limiting_server,
Expand All @@ -338,6 +329,15 @@ defmodule Sanbase.Application do
# used in test env to another one, this one is unused
start_in(Sanbase.AvailableSlugs, [:dev, :prod]),

# Start the PubSub
{Phoenix.PubSub, name: Sanbase.PubSub},

# Start the Presence
SanbaseWeb.Presence,

# Start the endpoint when the application starts
SanbaseWeb.Endpoint,

# Process that starts test-only deps
start_in(Sanbase.TestSetupService, [:test]),
Sanbase.EventBus.children()
Expand Down

0 comments on commit 4c20ff1

Please sign in to comment.