Lodestone-Team / lodestone_core

The backend for Lodestone, A free, open source server hosting tool for Minecraft and other multiplayers
https://www.lodestone.cc/
GNU Affero General Public License v3.0
60 stars 6 forks source link

Added lock file #174

Closed C0W0 closed 1 year ago

C0W0 commented 1 year ago

Description

What's the issue

multiple lodestone core running at the same time will cost data corruption

What is done to fix it

Added a lockfile check before running the instance. If the lockfile is locked, any attempt to run the lodestone core will cause it to panic and exit.

Dependency

Added fs3 as we are already using it as a dependency of Deno

Type of change

Note: make sure your files are formatted with rust-analyzer

C0W0 commented 1 year ago

@CheatCod Review please