Skip to content

Commit

Permalink
Reduce SqlTaskManager.removeOldTasks method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Jan 21, 2022
1 parent 9ad1904 commit f2c3d1d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ public TaskInfo failTask(TaskId taskId, Throwable failure)
return tasks.getUnchecked(taskId).failed(failure);
}

public void removeOldTasks()
@VisibleForTesting
void removeOldTasks()
{
DateTime oldestAllowedTask = DateTime.now().minus(infoCacheTime.toMillis());
tasks.asMap().values().stream()
Expand Down

0 comments on commit f2c3d1d

Please sign in to comment.