Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed race conditions in mock package mock_stream and mock_conn #535

Merged
merged 1 commit into from
Feb 14, 2019
Merged

Fixed race conditions in mock package mock_stream and mock_conn #535

merged 1 commit into from
Feb 14, 2019

Conversation

iulianpascalau
Copy link
Contributor

  • changed GetStreams function from mock_conn.go to call allStreams which has the same functionality but is concurrent safe
  • changed protocol field from mock_stream to be concurrent safe. Taken the implementation from swarm_stream.go

- changed GetStreams function from mock_conn.go to call allStreams which has the same functionality but is concurrent safe
- changed protocol field from mock_stream to be concurrent safe. Taken the implementation from swarm_stream.go
@iulianpascalau iulianpascalau changed the title mock package: Fixed race conditions in mock package mock_stream and mock_conn Feb 14, 2019
@Stebalien Stebalien merged commit 74b74b1 into libp2p:master Feb 14, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants