@axah/eureka
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -73,5 +73,3 @@ "use strict"; | ||
preferIpAddress: true, | ||
servicePath: '/eureka/apps/', | ||
fetchRegistry: false // we do not use registry to quiry infos, using docker LB directly | ||
servicePath: '/eureka/apps/' | ||
} | ||
@@ -124,3 +122,3 @@ }); | ||
if (instances.length === 0) { | ||
log.warn('Found no instances for appId {}, will fetch full registry', appId); | ||
log.warn('Found no instances for appId %s, will fetch full registry', appId); | ||
await fetchFullRegistry(); | ||
@@ -158,3 +156,7 @@ instances = client.getInstancesByAppId(appId); | ||
const hostname = hostnameForInstance(instance); | ||
return (0, _nodeFetch.default)(`${hostname}${path}`, init); | ||
return (0, _nodeFetch.default)(`${hostname}${path}`, { | ||
timeout: 10000, | ||
// 10 seconds timeout by default | ||
...init | ||
}); | ||
} | ||
@@ -161,0 +163,0 @@ |
{ | ||
"name": "@axah/eureka", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "license": "UNLICENSED", |
Sorry, the diff of this file is not supported yet
165
12402