@twin.org/node-core 0.9.2-next.7 → 0.9.2-next.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.
@@ -26,7 +26,7 @@ export async function buildEngineConfiguration(envVars) {
26
26
  silentLoggers: commaSeparatedListToArray(envVars.loggingSilentComponents),
27
27
  types: {}
28
28
  };
29
- const mutexTimeoutMs = envMs(envVars, "mutexTimeoutMsDefault");
29
+ const mutexTimeoutMs = envMs(envVars, "mutexTimeoutDefault");
30
30
  if (!Is.empty(mutexTimeoutMs)) {
31
31
  Mutex.setDefaultTimeoutMs(mutexTimeoutMs);
32
32
  }
@@ -109,7 +109,8 @@ async function configureEntityStorage(coreConfig, envVars) {
109
109
  accessKeyId: envVars.awsDynamodbAccessKeyId,
110
110
  secretAccessKey: envVars.awsDynamodbSecretAccessKey,
111
111
  endpoint: envVars.awsDynamodbEndpoint,
112
- connectionTimeoutMs: envMs(envVars, "awsDynamodbConnectionTimeout")
112
+ connectionTimeoutMs: envMs(envVars, "awsDynamodbConnectionTimeout"),
113
+ mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
113
114
  },
114
115
  tablePrefix: envVars.entityStorageTablePrefix
115
116
  }
@@ -123,7 +124,8 @@ async function configureEntityStorage(coreConfig, envVars) {
123
124
  endpoint: envVars.azureCosmosdbEndpoint ?? "",
124
125
  key: envVars.azureCosmosdbKey ?? "",
125
126
  databaseId: envVars.azureCosmosdbDatabaseId ?? "",
126
- containerId: envVars.azureCosmosdbContainerId ?? ""
127
+ containerId: envVars.azureCosmosdbContainerId ?? "",
128
+ mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
127
129
  },
128
130
  tablePrefix: envVars.entityStorageTablePrefix
129
131
  }
@@ -138,7 +140,8 @@ async function configureEntityStorage(coreConfig, envVars) {
138
140
  credentials: envVars.gcpFirestoreCredentials ?? "",
139
141
  databaseId: envVars.gcpFirestoreDatabaseId ?? "",
140
142
  collectionName: envVars.gcpFirestoreCollectionName ?? "",
141
- endpoint: envVars.gcpFirestoreEndpoint ?? ""
143
+ endpoint: envVars.gcpFirestoreEndpoint ?? "",
144
+ mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
142
145
  },
143
146
  tablePrefix: envVars.entityStorageTablePrefix
144
147
  }
@@ -152,7 +155,8 @@ async function configureEntityStorage(coreConfig, envVars) {
152
155
  hosts: commaSeparatedListToArray(envVars.scylladbHosts),
153
156
  localDataCenter: envVars.scylladbLocalDataCenter ?? "",
154
157
  keyspace: envVars.scylladbKeyspace ?? "",
155
- port: envInteger(envVars, "scylladbPort")
158
+ port: envInteger(envVars, "scylladbPort"),
159
+ mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
156
160
  },
157
161
  tablePrefix: envVars.entityStorageTablePrefix
158
162
  }
@@ -167,7 +171,8 @@ async function configureEntityStorage(coreConfig, envVars) {
167
171
  port: envInteger(envVars, "mySqlPort"),
168
172
  user: envVars.mySqlUser ?? "",
169
173
  password: envVars.mySqlPassword ?? "",
170
- database: envVars.mySqlDatabase ?? ""
174
+ database: envVars.mySqlDatabase ?? "",
175
+ mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
171
176
  },
172
177
  tablePrefix: envVars.entityStorageTablePrefix
173
178
  }
@@ -182,7 +187,8 @@ async function configureEntityStorage(coreConfig, envVars) {
182
187
  port: envInteger(envVars, "mongoDbPort"),
183
188
  user: envVars.mongoDbUser ?? "",
184
189
  password: envVars.mongoDbPassword ?? "",
185
- database: envVars.mongoDbDatabase ?? ""
190
+ database: envVars.mongoDbDatabase ?? "",
191
+ mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
186
192
  },
187
193
  tablePrefix: envVars.entityStorageTablePrefix
188
194
  }
@@ -197,7 +203,8 @@ async function configureEntityStorage(coreConfig, envVars) {
197
203
  port: envInteger(envVars, "postgreSqlPort"),
198
204
  user: envVars.postgreSqlUser ?? "",
199
205
  password: envVars.postgreSqlPassword ?? "",
200
- database: envVars.postgreSqlDatabase ?? ""
206
+ database: envVars.postgreSqlDatabase ?? "",
207
+ mutexTimeoutMs: envMs(envVars, "entityStorageMutexTimeout")
201
208
  },
202
209
  tablePrefix: envVars.entityStorageTablePrefix
203
210
  }
@@ -964,7 +971,9 @@ async function configureIdentity(coreConfig, envVars) {
964
971
  ? envVars.iotaIdentityPackageId
965
972
  : undefined,
966
973
  walletAddressIndex: envCount(envVars, "identityWalletAddressIndex") ?? 0,
967
- didResolutionCacheTtlMs: envMs(envVars, "identityDidResolutionCacheTtlMs")
974
+ didResolutionCacheTtlMs: envMs(envVars, "identityDidResolutionCacheTtl"),
975
+ didResolutionCacheCapacity: envCount(envVars, "identityDidResolutionCacheCapacity"),
976
+ didResolutionCacheMutexTimeoutMs: envMs(envVars, "identityDidResolutionCacheMutexTimeout")
968
977
  }
969
978
  }
970
979
  });
@@ -1409,7 +1418,14 @@ async function configureDataspace(coreConfig, envVars) {
1409
1418
  options: {
1410
1419
  config: {
1411
1420
  retainActivityLogsForMs: envSecToMs(envVars, "dataspaceRetainActivityLogsFor"),
1412
- activityLogsCleanUpIntervalMs: envSecToMs(envVars, "dataspaceActivityLogsCleanupInterval")
1421
+ activityLogsCleanUpIntervalMs: envSecToMs(envVars, "dataspaceActivityLogsCleanupInterval"),
1422
+ retryCount: envCount(envVars, "dataspaceRetryCount"),
1423
+ pushRetryCount: envCount(envVars, "dataspacePushRetryCount"),
1424
+ pushRetryBaseDelayMs: envMs(envVars, "dataspacePushRetryBaseDelay"),
1425
+ pushTimeoutMs: envMs(envVars, "dataspacePushTimeout"),
1426
+ pushSubscriptionCleanupIntervalMs: envMs(envVars, "dataspacePushSubscriptionCleanupInterval"),
1427
+ agreementCacheTtlMs: envMs(envVars, "dataspaceAgreementCacheTtl"),
1428
+ agreementCacheMutexTimeoutMs: envMs(envVars, "dataspaceAgreementCacheMutexTimeout")
1413
1429
  }
1414
1430
  }
1415
1431
  });