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

Exposing RPC over Signer WebSockets #1167

Merged
merged 16 commits into from
May 30, 2016
Merged

Exposing RPC over Signer WebSockets #1167

merged 16 commits into from
May 30, 2016

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented May 28, 2016

No description provided.

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. labels May 28, 2016
Tomasz Drwięga added 3 commits May 28, 2016 19:09
Conflicts:
	dapps/src/lib.rs
	parity/main.rs
	parity/signer.rs
	signer/Cargo.toml
	signer/src/lib.rs
@tomusdrw tomusdrw closed this May 28, 2016
@tomusdrw tomusdrw reopened this May 28, 2016
@tomusdrw tomusdrw removed the A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. label May 28, 2016
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels May 30, 2016
handler: Arc<IoHandler>,
}

impl Default for ServerBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this default impl used?

Copy link
Collaborator Author

@tomusdrw tomusdrw May 30, 2016

Choose a reason for hiding this comment

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

Nope, but it's recommended by rust-clippy to have one if you have a no-argument pub fn new() -> Self.
I prefer to use ServerBuilder::new() then ServerBuilder::default(), but like to keep clippy happy as well :)

Do you think we should just use default()?

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, i didn't realize that it was for clippy's benefit. I guess intuitively i would probably have it the other way -- have new()call default() rather than the other way around, but that's definitely just a personal preference.

Copy link
Contributor

Choose a reason for hiding this comment

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

think there's something to be said for making default the canonical means of naming/refering to parameter-less construction functions; it's got a stronger semantic notation given it's a trait rather than Just Another Consistently Named Function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Default implementation will be removed in future PRs anyway.

@debris debris merged commit 43348c1 into master May 30, 2016
@debris debris deleted the signer-rpc branch May 30, 2016 19:31
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.

5 participants