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

progresslog: Make header logging concurrent safe. #2833

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Nov 23, 2021

This modifies the header progress logging function to be concurrent safe and modifies some comments to call out that the various functions are concurrent safe.

This isn't strictly necessary with the current code because the function is only ever called from a single goroutine in the network sync manager, but the logger is intended to be concurrent safe and future code will likely make use of it from multiple goroutines.

This modifies the header progress logging function to be concurrent safe
and modifies some comments to call out that the various functions are
concurrent safe.

This isn't strictly necessary with the current code because the function
is only ever called from a single goroutine in the network sync manager,
but the logger is intended to be concurrent safe and future code will
likely make use of it from multiple goroutines.
@davecgh davecgh force-pushed the progresslog_concurrent_safe_header_log branch from 66952ab to 6387f76 Compare November 23, 2021 23:25
@davecgh davecgh merged commit 6387f76 into decred:master Nov 24, 2021
@davecgh davecgh deleted the progresslog_concurrent_safe_header_log branch November 24, 2021 00:30
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

3 participants