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

Proper signer Pub-Sub for pending requests. #5594

Merged
merged 3 commits into from
May 17, 2017
Merged

Proper signer Pub-Sub for pending requests. #5594

merged 3 commits into from
May 17, 2017

Conversation

tomusdrw
Copy link
Collaborator

No description provided.

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. M6-rpcapi 📣 RPC API. labels May 10, 2017
if let (Some(s), Some(subs)) = (s.upgrade(), subs.upgrade()) {
for subscription in subs.lock().values() {
let subscription: &Sink<_> = subscription;
let _ = subscription.notify(s.requests()
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems like it could be a pretty heavy operation. couldn't we perform the conversion once and pass a slice to to notify instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, thanks. Updated to clone the results instead and also added an event loop instead of .wait().

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels May 16, 2017
@gavofyork gavofyork merged commit 240704f into master May 17, 2017
@gavofyork gavofyork deleted the signer-pubsub branch May 17, 2017 14:20
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