Skip to content

Reloading roles watcher #197

Description

@TiBarification

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions