jasondeng1997 opened a new pull request, #1988: URL: https://github.com/apache/dubbo-go/pull/1988
ConsumerAPI.Subscribe 只需要执行一次,如果 Subscribe,可能是 SDK 内返回了类似 Busy 类的错误,因此需要先保证 ConsumerAPI.Subscribe 一定成功,成功之后,会返回一个用于订阅的 chan,这个chan需要走 for range or for select 的语句不断消费 chan 里面的实例变化事件,如果 chan 被 sdk 内部逻辑 close 的话,那么就又会走到外层的循环进行再次发起订阅动作,如果内部for发生错误,跳出当前for,继续执行监听事件 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
