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

Get block event err: rpc error: code = Unknown desc = maximum connections exceeded #78

Open
chaunsin opened this issue Jun 8, 2023 · 2 comments

Comments

@chaunsin
Copy link

chaunsin commented Jun 8, 2023

版本

  • go v1.17
  • xuper-sdk-go v2

问题

在我使用WatchBlockEvent()订阅方法时出现了以下错误:

2541686217574_ pic

对应源码:

image

tips: 报红是我导包出错得问题,不影响本问题

个人建议

监听方法当出现错误时支持重连逻辑

@superlitian
Copy link
Contributor

@chaunsin
Copy link
Author

chaunsin commented Jun 9, 2023

https://github.com/xuperchain/xuper-sdk-go/blob/master/example/event/event.go#L14 你可以看下这里的示例

这个貌似也不支持重试啊?

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