cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.

Home Page:https://www.cloudwego.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

通过Hertz IDL文件生成的代码会报错

CodeCaRobot opened this issue · comments

通过Hertz 代码生成IDL 会报错,因为thriftgo (0.3.17) 生成的代码中会调用thrift.TProtocol (thrift v0.20.0),其中ReadStructBegin方法多了一个参数ReadFieldBegin(ctx context.Context) ,而在thriftgo (0.3.17)中在调用ReadFieldBegin方法时候没有传Context这个参数,导致生成的代码报错!

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.

go mod edit -replace=github.com/apache/thrift=github.com/apache/thrift@v0.13.0

试试

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.