9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-26 18:19:10 +00:00

refactor: change default sync mode to LOCKSTEP

This commit is contained in:
William
2023-12-21 17:01:34 +00:00
parent 33c2eb2237
commit 9cf6d1eab6
4 changed files with 22 additions and 22 deletions

View File

@@ -147,10 +147,10 @@ public class Settings {
// Synchronization settings
@YamlComment("The mode of data synchronization to use (DELAY or LOCKSTEP). DELAY should be fine for most networks."
@YamlComment("The data synchronization mode to use (LOCKSTEP or DELAY). LOCKSTEP is recommended for most networks."
+ " Docs: https://william278.net/docs/husksync/sync-modes")
@YamlKey("synchronization.mode")
private DataSyncer.Mode syncMode = DataSyncer.Mode.DELAY;
private DataSyncer.Mode syncMode = DataSyncer.Mode.LOCKSTEP;
@YamlComment("The number of data snapshot backups that should be kept at once per user")
@YamlKey("synchronization.max_user_data_snapshots")

View File

@@ -134,8 +134,8 @@ public abstract class DataSyncer {
* @since 3.1
*/
public enum Mode {
DELAY(DelayDataSyncer::new),
LOCKSTEP(LockstepDataSyncer::new);
LOCKSTEP(LockstepDataSyncer::new),
DELAY(DelayDataSyncer::new);
private final Function<HuskSync, ? extends DataSyncer> supplier;