Browse Source

Allow load by require() and don't connect RMQ

pull/6/head
Menci 6 years ago
parent
commit
82e672f9cd
  1. 2
      app.js

2
app.js

@ -67,7 +67,9 @@ global.syzoj = {
})()); })());
await this.connectDatabase(); await this.connectDatabase();
if (!module.parent) {
await this.lib('judger').connect(); await this.lib('judger').connect();
}
this.loadModules(); this.loadModules();
}, },
async connectDatabase() { async connectDatabase() {

Loading…
Cancel
Save