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:
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user