mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
make sproto parser result more stable
This commit is contained in:
@@ -316,6 +316,7 @@ local function packgroup(t,p)
|
||||
alltypes[name] = #alltypes
|
||||
table.insert(alltypes, name)
|
||||
end
|
||||
table.sort(alltypes) -- make result stable
|
||||
tt = {}
|
||||
for _,name in ipairs(alltypes) do
|
||||
table.insert(tt, packtype(name, t[name], alltypes))
|
||||
|
||||
Reference in New Issue
Block a user