I have a concern about logic of
|
fileWatcher = new Utilities.FileWatcher(Config.GetRolesyncDir(), "rolesync.json", Reload); |
It looks each time file get updated Reload function triggered causing execution of function twice. For example here we saving data and on line 57 it reloads file but why if we added player into memory and removed
I can be wrong but feels like more useful to move from file sync to some sort of db with parallel usage and some lockers.
I have a concern about logic of
SCPDiscord/SCPDiscordPlugin/RoleSync.cs
Line 57 in 5ead793
It looks each time file get updated Reload function triggered causing execution of function twice. For example here we saving data and on line 57 it reloads file but why if we added player into memory and removed
I can be wrong but feels like more useful to move from file sync to some sort of db with parallel usage and some lockers.