fix: eliminate more gateway bottlenecks

This commit is contained in:
Hampus Kraft
2026-02-18 17:27:51 +00:00
parent dee08930f4
commit 261d4bd84c
5 changed files with 262 additions and 23 deletions

View File

@@ -184,7 +184,7 @@ lookup_guild(GuildId, SessionState) ->
{Pid, _Ref} when is_pid(Pid) ->
{ok, Pid};
undefined ->
case gen_server:call(guild_manager, {lookup, GuildId}, 5000) of
case guild_manager:lookup(GuildId) of
{ok, Pid} when is_pid(Pid) -> {ok, Pid};
_ -> {error, not_found}
end;