Browse Source

remove DefaultNodeLimit

originally added in c97bb95203d2e1f6b0c5b4e515d9fca7b54841bc
yearski 2 years ago
parent
commit
a2637b540c
1 changed files with 0 additions and 13 deletions
  1. 0 13
      servercfg/serverconf.go

+ 0 - 13
servercfg/serverconf.go

@@ -185,19 +185,6 @@ func GetStunAddr() string {
 	return stunAddr
 }
 
-// GetDefaultNodeLimit - get node limit if one is set
-func GetDefaultNodeLimit() int32 {
-	var limit int32
-	limit = 999999999
-	envlimit, err := strconv.Atoi(os.Getenv("DEFAULT_NODE_LIMIT"))
-	if err == nil && envlimit != 0 {
-		limit = int32(envlimit)
-	} else if config.Config.Server.DefaultNodeLimit != 0 {
-		limit = config.Config.Server.DefaultNodeLimit
-	}
-	return limit
-}
-
 // GetCoreDNSAddr - gets the core dns address
 func GetCoreDNSAddr() string {
 	addr, _ := GetPublicIP()