egg-dj-dubbo
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,5 +8,5 @@ 'use strict'; | ||
constructor() { | ||
let config = app.config.dubbo; | ||
let config = app.config.dubboclient; | ||
config.java = require('js-to-java') | ||
this.dubboAgent=new nzd(config); | ||
this.dubboAgent=new nzd(config.dubboAgent); | ||
} | ||
@@ -13,0 +13,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
dubbo(className, method, ...javaParams) { | ||
const timeout = this.app.dubboClinent.dependencies[className].dubboTimeout || this.app.dubboClinent.dubboTimeout || 30000; | ||
const timeout = this.app.dubboClinent.dubboAgent.dependencies[className].dubboTimeout || this.app.dubboClinent.dubboTimeout || 30000; | ||
return Promise.race([ | ||
@@ -8,0 +8,0 @@ this.app.dubboClinent.request(className, method, javaParams), |
{ | ||
"name": "egg-dj-dubbo", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "egg plugin to call dubbo service", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
5030