Skip to content

Commit

Permalink
cosmetics and fixing previously introduced bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jun 9, 2021
1 parent 30e3ba9 commit 24e9e1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -116,7 +116,6 @@ public void activateObject(Engine arg0) throws Exception {

@Override
public void destroyObject(Engine engine) throws Exception {
engine.close();
}


Expand Down
Expand Up @@ -189,7 +189,7 @@ public boolean accept(File dir, String name) {
if (maxNumThreads >= maxPoolConnections) {
int newNumThreads = maxPoolConnections - 1;
System.out.println("Grobid nbThreads ("+maxNumThreads+") >= maxPoolConnections ("+maxPoolConnections+"). Lowering to " + newNumThreads);
maxNumThreads = maxPoolConnections - 1;
maxNumThreads = newNumThreads;
}

ExecutorService executor = Executors.newFixedThreadPool(maxNumThreads);
Expand Down

0 comments on commit 24e9e1d

Please sign in to comment.