-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protoc:load问题 #34
Comments
有错误嘛?我这边用protoc:load没啥问题,另外实际使用的时候还是推荐Protoc.new()然后load,比较灵活和安全,protoc:load主要是为了方便使用,会导致载入的proto的数据在内存中一直存在不会被消除 |
你试试下面的格式,会报错 message get_ping { message get_ping_ret { enum register_result { //登录服务器注册账号 //登录服务器注册账号返回 message C2S {
} message S2C {
} //rpc 服务间转发 |
现在应该好了? |
没有后续反馈了,暂时关掉,如果还有问题可以再打开~ |
for i, v in pairs(filelist) do
local out = loader(v)
if out then
local bb = protoc:load(out.text)
if bb == true then
print("ok")
else
print("failed")
end
--print(out.text)
end
end
只能把第一个文件给加载,后续的文件就不行,换了文件顺序发现,就是第一个成功
The text was updated successfully, but these errors were encountered: