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

server: Use local inbound var in version handler. #1255

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 3, 2018

This requires PR #1254.

This modifies the OnVersion handler for server peers to use a local variable for the inbound status of the peer in order to avoid grabbing the mutex multiple times.

While here, it also does some light cleanup. There are no functional changes.

@davecgh davecgh added this to the 1.3.0 milestone Jun 4, 2018
@davecgh davecgh force-pushed the server_onversion_use_local_for_inbound branch from 6b47f77 to e5a23f3 Compare June 5, 2018 00:05
This modifies the OnVersion handler for server peers to use a local
variable for the inbound status of the peer in order to avoid grabbing
the mutex multiple times.

While here, it also does some light cleanup.  There are no functional
changes.
@davecgh davecgh force-pushed the server_onversion_use_local_for_inbound branch from e5a23f3 to 8883a7c Compare June 5, 2018 15:33
@davecgh davecgh merged commit 8883a7c into decred:master Jun 5, 2018
@davecgh davecgh deleted the server_onversion_use_local_for_inbound branch June 5, 2018 15:41
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.

None yet

2 participants