[skip ci] fix: startup issues in gateway

This commit is contained in:
Hampus Kraft
2026-02-18 16:53:32 +00:00
parent fda2962148
commit 22ba6945ed
2 changed files with 10 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ start(_StartType, _StartArgs) ->
otel_metrics:init(),
passive_sync_registry:init(),
guild_counts_cache:init(),
{ok, Pid} = fluxer_gateway_sup:start_link(),
Port = fluxer_gateway_env:get(port),
Dispatch = cowboy_router:compile([
{'_', [
@@ -37,7 +38,7 @@ start(_StartType, _StartArgs) ->
env => #{dispatch => Dispatch},
max_frame_size => 4096
}),
fluxer_gateway_sup:start_link().
{ok, Pid}.
-spec stop(term()) -> ok.
stop(_State) ->