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

WorkerExecutor must order tasks on the current Context and not on its… #1869

Merged
merged 1 commit into from Mar 10, 2017

Conversation

vietj
Copy link
Member

@vietj vietj commented Mar 9, 2017

…elf - fixes #1867

Copy link
Contributor

@tsegismont tsegismont 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 to me, good job! Can you please remove the commented code? Thanks

@@ -26,12 +26,12 @@
*/
class WorkerPool {

private final OrderedExecutorFactory orderedFact;
// private final OrderedExecutorFactory orderedFact;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove this commented code?

private final ExecutorService pool;
private final PoolMetrics metrics;

WorkerPool(ExecutorService pool, PoolMetrics metrics) {
this.orderedFact = new OrderedExecutorFactory(pool);
// this.orderedFact = new OrderedExecutorFactory(pool);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove this commented code?

return orderedFact.getExecutor();
}
// Executor createOrderedExecutor() {
// return orderedFact.getExecutor();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove this commented code?

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.

WorkerExecutor must order tasks on the current Context and not on itself
2 participants