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

rpc -> weak to arc #5688

Merged
merged 15 commits into from
May 28, 2017
Merged

rpc -> weak to arc #5688

merged 15 commits into from
May 28, 2017

Conversation

CraigglesO
Copy link
Contributor

Without a circular dependency, can just use arc now.

@CraigglesO CraigglesO requested a review from tomusdrw May 24, 2017 07:40
@tomusdrw
Copy link
Collaborator

Closes #3958

@CraigglesO CraigglesO added A0-pleasereview 🤓 Pull request needs code review. F7-optimisation 💊 An enhancement to provide better overall performance in terms of time-to-completion for a task. labels May 24, 2017
Copy link
Collaborator

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

Looks good!

sync: Arc::downgrade(sync),
miner: Arc::downgrade(miner),
accounts: accounts.as_ref().map(Arc::downgrade),
client: client.clone(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of cloning here we could actually change the signature from &Arc<C> to Arc<C>, it would require more changes though and the result would be the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You read my mind.

@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. M6-rpcapi 📣 RPC API. A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. and removed A0-pleasereview 🤓 Pull request needs code review. F7-optimisation 💊 An enhancement to provide better overall performance in terms of time-to-completion for a task. A8-looksgood 🦄 Pull request is reviewed well. labels May 24, 2017
@arkpar arkpar added A7-looksgoodcantmerge 🙄 Pull request is reviewed well, but cannot be merged due to conflicts. and removed A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. labels May 25, 2017
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A7-looksgoodcantmerge 🙄 Pull request is reviewed well, but cannot be merged due to conflicts. labels May 28, 2017
@gavofyork gavofyork merged commit 3991178 into master May 28, 2017
@gavofyork gavofyork deleted the weak-to-arc branch May 28, 2017 12:40
@tomusdrw tomusdrw mentioned this pull request Jun 28, 2017
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. M6-rpcapi 📣 RPC API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants