Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Make collator::Network require Send + Sync to make it work #316

Merged
merged 1 commit into from
Jul 5, 2019

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jul 5, 2019

No description provided.

@bkchr bkchr added the A0-please_review Pull request needs code review. label Jul 5, 2019
@bkchr bkchr requested a review from andresilva July 5, 2019 13:09
@@ -47,6 +47,8 @@ const GENESIS_BODY: AdderBody = AdderBody {
#[derive(Clone)]
struct AdderContext {
db: Arc<Mutex<HashMap<AdderHead, AdderBody>>>,
/// We store it here to make sure that our interfaces require the correct bounds.
Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand correctly this is done to make sure our instance of Network is Send + Sync.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the code compiled before, but while integrating it into Cumulus the compiler denied it :(

@bkchr bkchr merged commit c3e99e3 into master Jul 5, 2019
@bkchr bkchr deleted the bkchr-collator-network-send-sync branch July 5, 2019 13:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants