bitcoin-broker
bitcoin-broker copied to clipboard
install过程出错了
环境mac, 目前还没装PostgresDB, 请问是什么原因?
Thrift version 0.10.0 go version 1.8
https://github.com/openzipkin/zipkin-go-opentracing/issues/68
@ynzheng so update go version to 1.9 can fix it ?
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)
}
因为现在thrift的tag号最新是0.11.0,而用brew安装的最新是0.10.0,版本号不匹配。。把thirdparty/src/github.com/apache/thrift下的thrift版本切成0.10.0就可以了,默认它会自动拉最新https://github.com/apache/thrift
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