molly-db 1.0.26 → 1.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/main.js +1 -2
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -1,7 +1,6 @@
1
1
  const worker = require('worker_threads');
2
2
  const url = require('url');
3
3
  const fs = require('fs');
4
- const os = require('os');
5
4
 
6
5
  /* --------------------------------------------------------------------------------------- */
7
6
 
@@ -19,7 +18,7 @@ class molly_db{
19
18
  constructor( opt ){ if( opt.pass )
20
19
  this.pass = opt.pass; this.port = opt.port || 27017;
21
20
  this.path = opt.path.replace( /^\./,process.cwd() );
22
- this.threads = opt.threads || os.cpus().length;
21
+ this.threads = opt.threads || 1;
23
22
  return require(`${__dirname}/module/_worker_.js`)(this);
24
23
  }
25
24
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "MIT",
3
3
  "main": "main.js",
4
- "version": "1.0.26",
4
+ "version": "1.0.27",
5
5
  "name": "molly-db",
6
6
  "author": "bececrazy",
7
7
  "scripts": {