mirror of https://github.com/apache/druid.git
cleanup redundant code
This commit is contained in:
parent
b4e3f98f4b
commit
6b247f1599
|
@ -173,11 +173,9 @@ public class RemoteTaskRunner implements TaskRunner
|
|||
@Override
|
||||
public boolean apply(@Nullable WorkerWrapper input)
|
||||
{
|
||||
if (!input.getRunningTasks().isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return System.currentTimeMillis() - input.getLastCompletedTaskTime().getMillis()
|
||||
> config.getmaxWorkerIdleTimeMillisBeforeDeletion();
|
||||
return input.getRunningTasks().isEmpty()
|
||||
&& System.currentTimeMillis() - input.getLastCompletedTaskTime().getMillis()
|
||||
> config.getmaxWorkerIdleTimeMillisBeforeDeletion();
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue