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:
NovaFox161
2020-04-03 15:00:46 -05:00
parent 524db88f6c
commit c369710e50
2 changed files with 9 additions and 0 deletions
@@ -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));