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

安装出错 redeclared in this bloc #7

Open
brightgems opened this issue Aug 19, 2017 · 2 comments
Open

安装出错 redeclared in this bloc #7

brightgems opened this issue Aug 19, 2017 · 2 comments

Comments

@brightgems
Copy link

lib/src/trade_service/constants.go:17: EX_INTERNAL_ERROR redeclared in this bloc k
previous declaration at lib/src/trade_service/broker-consts.go:17
lib/src/trade_service/constants.go:18: EX_PRICE_OUT_OF_SCOPE redeclared in this block
previous declaration at lib/src/trade_service/broker-consts.go:18
lib/src/trade_service/constants.go:19: EX_NO_USABLE_FUND redeclared in this bloc k
previous declaration at lib/src/trade_service/broker-consts.go:19
lib/src/trade_service/constants.go:20: EX_NO_USABLE_DEPTH redeclared in this blo ck
previous declaration at lib/src/trade_service/broker-consts.go:20
lib/src/trade_service/constants.go:21: EX_TRADE_QUEUE_FULL redeclared in this bl ock
previous declaration at lib/src/trade_service/broker-consts.go:21
lib/src/trade_service/constants.go:22: EX_DEPTH_INSUFFICIENT redeclared in this block
previous declaration at lib/src/trade_service/broker-consts.go:22
lib/src/trade_service/constants.go:23: EX_PRICE_NOT_SYNC redeclared in this bloc k
previous declaration at lib/src/trade_service/broker-consts.go:23
lib/src/trade_service/constants.go:24: EX_EXIST_ERROR_ORDERS redeclared in this block
previous declaration at lib/src/trade_service/broker-consts.go:24
lib/src/trade_service/trade_service.go:17: TradeService redeclared in this block
previous declaration at lib/src/trade_service/broker.go:1759
lib/src/trade_service/trade_service.go:41: TradeServiceClient redeclared in this block
previous declaration at lib/src/trade_service/broker.go:1783
lib/src/trade_service/trade_service.go:41: too many errors

@brightgems
Copy link
Author

前面的错误解决了,是因为yum安装的go/thrift版本太低。不过还是build错误
src/trade_server/trade_server.go:33: 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

@Pfahlf
Copy link

Pfahlf commented Aug 25, 2017

Any news about issue
lib/src/trade_service/constants.go:17: EX_INTERNAL_ERROR redeclared in this bloc k
previous declaration at lib/src/trade_service/broker-consts.go:17
?

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

2 participants