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