chore: use NODE_TYPE to determine node type

This commit is contained in:
JustSong
2023-06-22 20:39:17 +08:00
parent 7497f24daa
commit b090e50f72
4 changed files with 13 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ var PreConsumedQuota = 500
var RootUserEmail = ""
var IsMasterNode = os.Getenv("SYNC_FREQUENCY") == ""
var IsMasterNode = os.Getenv("NODE_TYPE") != "slave"
const (
RoleGuestUser = 0