Sort в autoload

This commit is contained in:
Gravit 2018-09-22 18:21:52 +07:00
parent 1e65b0e3a6
commit 87fb00de54
2 changed files with 2 additions and 1 deletions

View file

@ -40,7 +40,7 @@ protected PlayerProfile[] requestDo(HInput input, HOutput output) throws IOExcep
output.writeLength(usernames.length, SerializeLimits.MAX_BATCH_SIZE);
for (String username : usernames) {
output.writeString(username, SerializeLimits.MAX_LOGIN);
output.writeString("", SerializeLimits.MAX_CLIENT); //TODO: Что это за запрос и для чего он нужен?
output.writeString("", SerializeLimits.MAX_CLIENT);
}
output.flush();

View file

@ -44,6 +44,7 @@ public void autoload(Path dir) throws IOException {
LogHelper.info("Load modules");
if (Files.notExists(dir)) Files.createDirectory(dir);
IOHelper.walk(dir, new ModulesVisitor(), true);
sort();
LogHelper.info("Loaded %d modules", modules.size());
}