mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-23 04:28:01 +00:00
reduce integrity check to run from 1 min to 30 seconds
This commit is contained in:
parent
2e8342f5c3
commit
d806bc2d41
@ -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.
|
// register plugin messages channel.
|
||||||
getProxy().registerChannel("legacy:redisbungee");
|
getProxy().registerChannel("legacy:redisbungee");
|
||||||
|
@ -801,7 +801,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
|
|||||||
return null;
|
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
|
// register plugin messages
|
||||||
IDENTIFIERS.forEach(getProxy().getChannelRegistrar()::register);
|
IDENTIFIERS.forEach(getProxy().getChannelRegistrar()::register);
|
||||||
|
Loading…
Reference in New Issue
Block a user