是否可以在超级账本结构链码中使用goroutine?

问题描述 投票:-1回答:1

我正在尝试同时使用goroutines使用shim.GetQueryResults API执行多个查询。但这是失败的,但是当我在没有goroutine的情况下正常执行此操作时,它就可以正常工作。有什么想法吗?

hyperledger-fabric hyperledger smartcontracts chaincode
1个回答
0
投票

试图在goroutine中使用GetQueryResults。每次我累都失败。还尝试了GoRoutine中的GetState。它也失败了。

© www.soinside.com 2019 - 2024. All rights reserved.