mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
can't setenv more than once
This commit is contained in:
@@ -357,6 +357,7 @@ function skynet.getenv(key)
|
||||
end
|
||||
|
||||
function skynet.setenv(key, value)
|
||||
assert(c.command("GETENV",key) == nil, "Can't setenv exist key : " .. key)
|
||||
c.command("SETENV",key .. " " ..value)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user