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

Improve writing across multiple files. #245

Merged
merged 4 commits into from
Nov 5, 2014
Merged

Conversation

arb
Copy link
Contributor

@arb arb commented Nov 5, 2014

Ran this against my local test server and while the writing isn't "even", neither file seems starved.

Fixes #245
Fixes #244

@arb arb added this to the 2.5.1 milestone Nov 5, 2014
@arb arb assigned geek Nov 5, 2014
@arb arb added the bug Bug or defect label Nov 5, 2014
@@ -390,15 +390,22 @@ internals.Monitor.prototype._broadcastFile = function () {
}
};

for (var i = 0; i < keysLength; ++i) {
Async.each(keys, function (key, callback) {
Copy link
Member

Choose a reason for hiding this comment

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

Usually use next for async functions instead of callback: https://github.com/hapijs/hapi/blob/master/lib/request.js#L292-L309

geek added a commit that referenced this pull request Nov 5, 2014
Improve writing across multiple files.
@geek geek merged commit 4fc51a5 into hapijs:branch2.5.1 Nov 5, 2014
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants