tx7do / kratos-transport

kratos transport layer extension
MIT License
348 stars 95 forks source link

cannot use tr.reqHeader问题,求解决 #52

Closed Invercargill closed 1 year ago

Invercargill commented 1 year ago

C:\Users\xxx\go\pkg\mod\github.com\tx7do\kratos-transport\transport\kafka@v0.0.0-20221220110912-9db1b79d385c\transport.go:41:9: cannot use tr.reqHeader (variable o f type headerCarrier) as transport.Header value in return statement: headerCarrier does not implement transport.Header (missing method Add) C:\Users\xxx\go\pkg\mod\github.com\tx7do\kratos-transport\transport\kafka@v0.0.0-20221220110912-9db1b79d385c\transport.go:46:9: cannot use tr.replyHeader (variable of type headerCarrier) as transport.Header value in return statement: headerCarrier does not implement transport.Header (missing method Add)

Invercargill commented 1 year ago

解决了。。老哥整整默认版本号吧。。

tx7do commented 1 year ago

额,这个吧,其实你用go get -u 就能够更新到最新的版本。这个没办法了,都怪我手贱当时用了固定版本号,然后,缓存到mod服务器的版本号,最新版本就是它了。但是,如果用-u更新,还是可以更新到真正的最新版本的。