Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

also send notify/progress across connection #20

Merged
merged 1 commit into from
Jul 3, 2013

Conversation

blai
Copy link
Collaborator

@blai blai commented Jul 3, 2013

see issue #19

function resolveLocal(id, value) {
_debug('resolve:', "L" + JSON.stringify(id), JSON.stringify(value), typeof value);
locals.get(id).resolve(value);
function resolveLocal(id, op, value) {
Copy link
Owner

Choose a reason for hiding this comment

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

Seems that we’re not getting much utility from this utility function. The resolve in resolveLocal certainly no longer applies. Perhaps we should inline this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are currently 4 instance of use of this util function: line 56, 62, 191 and 261. I am for making it inline for line 56 and 62, but I have insufficient knowledge on other two instances. If you can suggest a solution, I will make the changes

Copy link
Owner

Choose a reason for hiding this comment

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

I’ll take care of it in a follow-up. They are all the same, really. The other cases are for encoding references to local promises in message arguments.

@kriskowal
Copy link
Owner

Looks good to me.

kriskowal added a commit that referenced this pull request Jul 3, 2013
Bridges progress events
@kriskowal kriskowal merged commit ea5a1e3 into kriskowal:master Jul 3, 2013
@kriskowal
Copy link
Owner

@blai I am adding you to the project contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants