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.
- package/main.js +1 -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 ||
|
21
|
+
this.threads = opt.threads || 1;
|
23
22
|
return require(`${__dirname}/module/_worker_.js`)(this);
|
24
23
|
}
|
25
24
|
}
|