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

NetworkEvent object #1936

Merged
merged 5 commits into from
Jan 13, 2021
Merged

NetworkEvent object #1936

merged 5 commits into from
Jan 13, 2021

Conversation

3xtr4t3rr3str14l
Copy link
Contributor

made an object to put the strings for the network events in one place.

@github-actions github-actions bot added the scope-networking All issues related to networking, gossip, and libp2p. label Jan 11, 2021
@codeclimate
Copy link

codeclimate bot commented Jan 11, 2021

Code Climate has analyzed commit 23adaca and detected 0 issues on this pull request.

View more on Code Climate.

peerDisconnect = "peer:disconnect",
gossipStart = "gossip:start",
gossipStop = "gossip:stop",
gossipHeartbeat = "gossipsub:heartbeat",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we had convention to UPPER_CASE enums?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. I just followed the convention used in ChainEvent:

export enum ChainEvent {

@wemeetagain wemeetagain merged commit 62ec018 into master Jan 13, 2021
@wemeetagain wemeetagain deleted the P0/network-events branch January 13, 2021 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-networking All issues related to networking, gossip, and libp2p.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants