[skip ci] fix: startup issues in gateway
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user