mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-05-03 23:59:48 -05:00
Debugging guild get endpoint taking too long to execute
Add some more debug statements to see where execution is still slowing down. So far its at about 4-5 seconds, the goal is to get it near 1 sec. max
This commit is contained in:
+1
@@ -54,6 +54,7 @@ public class GetWebGuildEndpoint {
|
||||
|
||||
Member m = g.getMemberById(userId).onErrorResume(e -> Mono.empty()).block();
|
||||
|
||||
Logger.getLogger().debug("Guild get endpoint check perms", true);
|
||||
if (m != null) { //Assume false if we can't get the user...
|
||||
wg.setManageServer(PermissionChecker.hasManageServerRole(m).blockOptional().orElse(false));
|
||||
wg.setDiscalRole(PermissionChecker.hasSufficientRole(m, wg.getSettings()).blockOptional().orElse(false));
|
||||
|
||||
Reference in New Issue
Block a user