Skip to content

Commit

Permalink
Fix lookup profiles query
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Nov 22, 2017
1 parent 8136c4d commit e323767
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ protected void enable() {
int preloadAmount = config.getInt("preload-amount", 2000);
if (preloadAmount > 0) {
getLogger().info("Preloading the most recent " + preloadAmount + " entries...");
long start = System.currentTimeMillis();
int found = preload(preloadAmount);
getLogger().info("Preloaded " + found + " profiles into the cache!");
long time = System.currentTimeMillis() - start;
getLogger().info("Preloaded " + found + " profiles into the cache! - took " + time + "ms");
}

// observe logins
Expand Down Expand Up @@ -332,7 +334,7 @@ public Promise<Map<UUID, Profile>> lookupProfiles(@Nonnull Iterable<UUID> unique
if (!first) {
sb.append(", ");
}
sb.append("`").append(UuidUtils.toString(uniqueId)).append("`");
sb.append("UNHEX(`").append(UuidUtils.toString(uniqueId)).append("`)");
first = false;
}

Expand Down

0 comments on commit e323767

Please sign in to comment.