egg-dj-dubbo
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -8,3 +8,3 @@ 'use strict'; | ||
constructor() { | ||
let config = app.config.dubboclient; | ||
let config = app.config.dubbo; | ||
config.java = require('js-to-java') | ||
@@ -11,0 +11,0 @@ this.dubboAgent=new nzd(config.dubboAgent); |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const timeout = this.app.dubboClinent.dubboAgent.dependencies[className].dubboTimeout || this.app.dubboClinent.dubboTimeout || 30000; | ||
//同时发起两个promise,超时抛出错误 | ||
return Promise.race([ | ||
@@ -8,0 +9,0 @@ this.app.dubboClinent.request(className, method, javaParams), |
{ | ||
"name": "egg-dj-dubbo", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "egg plugin to call dubbo service", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
@@ -31,8 +31,10 @@ # egg-dj-dubbo | ||
application:{name:'demo-provider'}, | ||
register:'localhost:2181', | ||
dubboVer:'2.5.4-SNAPSHOT', | ||
root:'dubbo', | ||
registry:'localhost:2181', | ||
dubboVer:'3.5.10', | ||
timeout: 6000, // 整个socket链接超时时间 默认6s | ||
root:'dubbo',// 不填默认dubbo | ||
dependencies:{ | ||
Foo:{ | ||
interface:'com.alibaba.dubbo.demo.provider.DemoService', | ||
dubboTimeout: 6000 // 单个应用超时时间 | ||
}, | ||
@@ -39,0 +41,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5230
26
57