Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install过程出错了 #9

Open
doubleDragon opened this issue Sep 7, 2017 · 6 comments
Open

install过程出错了 #9

doubleDragon opened this issue Sep 7, 2017 · 6 comments

Comments

@doubleDragon
Copy link

环境mac, 目前还没装PostgresDB, 请问是什么原因?
image

@doubleDragon
Copy link
Author

Thrift version 0.10.0
go version 1.8

@ynzheng
Copy link

ynzheng commented Sep 7, 2017

@doubleDragon
Copy link
Author

@ynzheng so update go version to 1.9 can fix it ?

@doubleDragon
Copy link
Author

func (p *tradeServiceProcessorPing) Process( seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
	...
}

the TProcessorFunction add a new param called context

type TProcessorFunction interface {
	Process(ctx context.Context, seqId int32, in, out TProtocol) (bool, TException)
}

@hitgy09
Copy link

hitgy09 commented Sep 13, 2017

因为现在thrift的tag号最新是0.11.0,而用brew安装的最新是0.10.0,版本号不匹配。。把thirdparty/src/github.com/apache/thrift下的thrift版本切成0.10.0就可以了,默认它会自动拉最新https://github.com/apache/thrift

@ww7
Copy link

ww7 commented Sep 16, 2017

Problem with compilation. Wrong version of thrift?

# trade_server
src/trade_server/trade_server.go:33:53: cannot use handler (type *TradeServiceHandler) as type trade_service.TradeService in argument to trade_service.NewTradeServiceProcessor:
	*TradeServiceHandler does not implement trade_service.TradeService (wrong type for Buy method)
		have Buy(*trade_service.Trade) error
		want Buy(context.Context, *trade_service.Trade) error

Thrift version 1.0.0-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants