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

cmd, dashboard, p2p: patch metered peer event data race #19310

Closed

Conversation

kurkomisi
Copy link
Contributor

There is a data race between the network layer and the dashboard, which can cause some lost peer events, therefore some peers might not appear on the dashboard.

This PR contains the registration of a subscription to the metered peer event feed in order to collect the initial events before the start of the dashboard service.

@karalabe
Copy link
Member

Nonononononono. You are leaking dashboard internals out into cmd. This is very very not-nice. Can't you do the same thing in dashboard.New? AFAIK that gets called before the network layer is booted up.

@kurkomisi
Copy link
Contributor Author

Aah, yes sure. The channels go down exactly that way, I don't know why I didn't see this... Thank you! I change it immediately.

@kurkomisi kurkomisi force-pushed the dashboard-peer-feed-store branch from d84c825 to b36134a Compare March 22, 2019 16:50
@kurkomisi
Copy link
Contributor Author

Superseded by #19397

@kurkomisi kurkomisi closed this Apr 15, 2019
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

Successfully merging this pull request may close these issues.

2 participants