sqlite3-cluster.js/examples/factory/index.js

9 lines
116 B
JavaScript
Raw Normal View History

2015-11-10 12:16:50 +00:00
var cluster = require('cluster');
if (cluster.isMaster) {
require('./master');
}
else {
require('./worker');
}