Giter Site home page Giter Site logo

install过程出错了 about bitcoin-broker HOT 6 OPEN

philsong avatar philsong commented on August 15, 2024
install过程出错了

from bitcoin-broker.

Comments (6)

doubleDragon avatar doubleDragon commented on August 15, 2024

Thrift version 0.10.0
go version 1.8

from bitcoin-broker.

ynzheng avatar ynzheng commented on August 15, 2024

openzipkin-contrib/zipkin-go-opentracing#68

from bitcoin-broker.

doubleDragon avatar doubleDragon commented on August 15, 2024

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

from bitcoin-broker.

doubleDragon avatar doubleDragon commented on August 15, 2024
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)
}

from bitcoin-broker.

hitgy09 avatar hitgy09 commented on August 15, 2024

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

from bitcoin-broker.

ww7 avatar ww7 commented on August 15, 2024

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

from bitcoin-broker.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.