Skip to content

Commit

Permalink
tiny improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Linary committed Jun 24, 2019
1 parent b6381e0 commit 7a1f3d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

public final class ExecutorUtil {

public static ExecutorService newSingleFixedThreadPool(String name) {
public static ExecutorService newFixedThreadPool(String name) {
return newFixedThreadPool(1, name);
}

Expand All @@ -39,8 +39,7 @@ public static ExecutorService newFixedThreadPool(int size, String name) {
return Executors.newFixedThreadPool(size, factory);
}

public static ScheduledExecutorService newSingleScheduledThreadPool(
String name) {
public static ScheduledExecutorService newScheduledThreadPool(String name) {
return newScheduledThreadPool(1, name);
}

Expand Down

0 comments on commit 7a1f3d2

Please sign in to comment.