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

Work notification over HTTP #1491

Merged
merged 9 commits into from
Jun 30, 2016
Merged

Work notification over HTTP #1491

merged 9 commits into from
Jun 30, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Jun 29, 2016

No description provided.

@arkpar arkpar added the A0-pleasereview 🤓 Pull request needs code review. label Jun 29, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 29, 2016
trace!(target: "miner", "prepare_sealing: leaving (last={:?})", sealing_work.peek_last_ref().map(|b| b.block().fields().header.hash()));
work
};
work.map(|(pow_hash, difficulty, number)| self.work_poster.as_ref().map(|ref p| p.notify(pow_hash, difficulty, number)));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldn't it be better to do it asynchronously? It may lock up the client for like 100ms?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is done asynchronously in notify

@arkpar arkpar merged commit 6027008 into master Jun 30, 2016
@gavofyork gavofyork deleted the work-notify branch June 30, 2016 06:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants