bitcoin-broker icon indicating copy to clipboard operation
bitcoin-broker copied to clipboard

install过程出错了

Open doubleDragon opened this issue 6 years ago • 6 comments

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

doubleDragon avatar Sep 07 '17 14:09 doubleDragon

Thrift version 0.10.0 go version 1.8

doubleDragon avatar Sep 07 '17 15:09 doubleDragon

https://github.com/openzipkin/zipkin-go-opentracing/issues/68

ynzheng avatar Sep 07 '17 15:09 ynzheng

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

doubleDragon avatar Sep 07 '17 15:09 doubleDragon

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)
}

doubleDragon avatar Sep 07 '17 16:09 doubleDragon

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

hitgy09 avatar Sep 13 '17 08:09 hitgy09

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

ww7 avatar Sep 16 '17 22:09 ww7