starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.74k stars 387 forks source link

Is it possible to have multiple instance of "pb" configuration? #232

Open StarlightIbuki opened 1 year ago

StarlightIbuki commented 1 year ago

I know we have pb.state. But at one time, there can be only one state in effect.

This could be inconvenient if we have multiple applications of protobuf in a project, especially if we are using coroutine.

If this is acceptable, I'd like to create a PR for it.

starwing commented 1 year ago

Maybe you could only add encode/decode/load to State objects. But we need think twice to decide whether to merge it.