mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-29 00:08:37 +00:00
(jsrt) opt. & fix: cfg loading
This commit is contained in:
@@ -28,7 +28,7 @@ const (
|
||||
defaultMaxVMCount = 8
|
||||
)
|
||||
|
||||
func init() {
|
||||
func loadCfg() {
|
||||
if enabled := os.Getenv("JS_RUNTIME_ENABLED"); enabled != "" {
|
||||
jsConfig.Enabled = enabled == "true"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user