Flush storage buffer more frequently

This commit is contained in:
Luck 2017-07-22 20:42:53 +01:00
parent 90afd3c3ed
commit 845367e847
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -59,7 +59,7 @@ import java.util.function.Supplier;
public class AbstractStorage implements Storage {
public static Storage wrap(LuckPermsPlugin plugin, AbstractBacking backing) {
BufferedOutputStorage bufferedDs = BufferedOutputStorage.wrap(PhasedStorage.wrap(new AbstractStorage(plugin, backing)), 1000L);
plugin.getScheduler().asyncRepeating(bufferedDs, 10L);
plugin.getScheduler().asyncRepeating(bufferedDs, 5L);
return bufferedDs;
}