Skip to content

Commit

Permalink
Go back to the original multiplier
Browse files Browse the repository at this point in the history
* This value is per thread otherwise it would be huge in each thread. Durr.

Applies to OpenUserJS#1548
  • Loading branch information
Martii committed Dec 19, 2018
1 parent 89b17ca commit 03e9dd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ var privkey = require('./libs/debug').privkey;
var fullchain = require('./libs/debug').fullchain;
var chain = require('./libs/debug').chain;

var os = require('os');

//
var path = require('path');
var crypto = require('crypto');
Expand Down Expand Up @@ -72,7 +70,7 @@ var defaultPoolSize = 5;
if (isPro) {
dbOptions = {
secondaryAcceptableLatencyMS: 15,
poolSize: (isPro ? defaultPoolSize * os.cpus().length : defaultPoolSize)
poolSize: defaultPoolSize * 2
}
} else {
dbOptions = {
Expand Down

0 comments on commit 03e9dd3

Please sign in to comment.