godprotocol 1.2.7 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -328,13 +328,15 @@ class Manager {
328
328
  this.server = this.options.server
329
329
  if (this.options.server.port)
330
330
  this.options.server_domain = `${this.options.server.hostname}:${this.options.server.port}`
331
- else this.options.server_domain = this.options.hostname
332
- this.handler = (req, res)=>{
333
- let handle = create_server({manager: this, ...this.options.server, app: this.options.app })
331
+ else this.options.server_domain = this.options.server.hostname
332
+ let handle = create_server({manager: this, ...this.options.server, app: this.options.app })
334
333
 
334
+ this.handler = (req, res)=>{
335
+
335
336
  handle(req,res)
336
337
 
337
- if (this.options.oracle){
338
+ if (this.options.oracle && !this.served){
339
+ this.served = true
338
340
  this.oracle = this.options.oracle;
339
341
  this.oracle.set_manager(this)
340
342
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "A distributed computing environment",
5
5
  "main": "Index.js",
6
6
  "scripts": {