Skip to content

Commit

Permalink
#59 single thread
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 22, 2018
1 parent 0d08772 commit 7ec0337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/wring/agents/Routine.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public Routine(final Base bse) {
public Routine(final Base bse, final int total) {
this.base = bse;
this.threads = total;
this.executor = Executors.newScheduledThreadPool(
total, new VerboseThreads(Routine.class)
this.executor = Executors.newSingleThreadScheduledExecutor(
new VerboseThreads(Routine.class)
);
}

Expand Down

0 comments on commit 7ec0337

Please sign in to comment.