chore: use NODE_TYPE to determine node type

This commit is contained in:
JustSong
2023-06-22 20:39:17 +08:00
parent e975d41ce4
commit c90fc7e0d6
4 changed files with 13 additions and 10 deletions
+1 -1
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