2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-22 20:28:00 +00:00

reduce integrity check to run from 1 min to 30 seconds

This commit is contained in:
mohammed jasem alaajel 2022-07-19 07:21:17 +04:00
parent 2e8342f5c3
commit d806bc2d41
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
}
};
integrityCheck = service.scheduleAtFixedRate(integrityCheckRedisTask::execute, 0, 1, TimeUnit.MINUTES);
integrityCheck = service.scheduleAtFixedRate(integrityCheckRedisTask::execute, 0, 30, TimeUnit.SECONDS);
// register plugin messages channel.
getProxy().registerChannel("legacy:redisbungee");

View File

@ -801,7 +801,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
return null;
}
};
integrityCheck = getProxy().getScheduler().buildTask(this, integrityCheckRedisTask::execute).repeat(1, TimeUnit.MINUTES).schedule();
integrityCheck = getProxy().getScheduler().buildTask(this, integrityCheckRedisTask::execute).repeat(30, TimeUnit.SECONDS).schedule();
// register plugin messages
IDENTIFIERS.forEach(getProxy().getChannelRegistrar()::register);