feat: support automatic channel testing & balance updates (close #11, close #59)

This commit is contained in:
JustSong
2023-06-22 22:01:03 +08:00
parent ad1049b0cf
commit 4463224f04
5 changed files with 57 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ package common
import (
"os"
"strconv"
"sync"
"time"
@@ -70,6 +71,9 @@ var RootUserEmail = ""
var IsMasterNode = os.Getenv("NODE_TYPE") != "slave"
var requestInterval, _ = strconv.Atoi(os.Getenv("REQUEST_INTERVAL"))
var RequestInterval = time.Duration(requestInterval) * time.Second
const (
RoleGuestUser = 0
RoleCommonUser = 1