geonix 1.10.6 → 1.10.8
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.
- package/package.json +1 -1
- package/src/Request.js +2 -1
package/package.json
CHANGED
package/src/Request.js
CHANGED
|
@@ -67,8 +67,9 @@ export async function Request(service, method, args = [], context = [], options)
|
|
|
67
67
|
let identifier = null
|
|
68
68
|
|
|
69
69
|
// get service instance identifier and wait for it if it's not available
|
|
70
|
+
const registryTimeout = options?.timeout ?? REGISTRY_TIMEOUT
|
|
70
71
|
const delay = 5
|
|
71
|
-
let retries = Math.floor(
|
|
72
|
+
let retries = Math.floor(registryTimeout / delay)
|
|
72
73
|
while (identifier == null && retries-- > 0) {
|
|
73
74
|
identifier = registry.getIdentifier(name, version, id)
|
|
74
75
|
if (!identifier)
|