not enough arguments in call to oprot.Flush

最近打算把之前C++相关的thrift项目,改成go项目。把协议重新生成后,就开始撸一发看看。

结果第一个错误就来了:not enough arguments in call to oprot.Flush,这是因为本地生成协议的版本是0.9.3与 go get git.apache.org/thrift.git/lib/go/thrift 下载下来的库版本是不同导致的。

解决方法:到git.apache.org/thrift.git的目录下去,

再次编译通过。

猜你喜欢

转载自blog.csdn.net/goodsirlee/article/details/93629357
今日推荐