通过Hertz IDL文件生成的代码会报错
CodeCaRobot opened this issue · comments
CodeCaRobot commented
通过Hertz 代码生成IDL 会报错,因为thriftgo (0.3.17) 生成的代码中会调用thrift.TProtocol (thrift v0.20.0),其中ReadStructBegin方法多了一个参数ReadFieldBegin(ctx context.Context) ,而在thriftgo (0.3.17)中在调用ReadFieldBegin方法时候没有传Context这个参数,导致生成的代码报错!
github-actions commented
This issue has been marked as invalid question, please give more information by following the issue
template. The issue will be closed in 1 days if no further activity occurs.
GuangyuFan commented
go mod edit -replace=github.com/apache/thrift=github.com/apache/thrift@v0.13.0
试试
github-actions commented
This issue has been marked as invalid question, please give more information by following the issue
template. The issue will be closed in 1 days if no further activity occurs.