Skip to content

Commit 1f5808d

Browse files
committed
fix: concurrent processing issues and add some todo's
Signed-off-by: Krishna Waske <[email protected]>
1 parent 5d19acc commit 1f5808d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ async function parseArguments(): Promise<Parsed> {
151151
.option('apiKey', {
152152
string: true,
153153
})
154+
// TODO: add some variable like: 'rotateSecret' to trigger rotating the secret from the generic records
154155
.config()
155156
.env('AFJ_REST')
156157
.parseAsync() as Promise<Parsed>

src/cliAgent.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ export async function runRestAgent(restConfig: AriesRestConfig) {
289289
// As backup is only supported for sqlite storage
290290
// we need to manually take backup of the storage before updating the storage
291291
backupBeforeStorageUpdate: false,
292+
// Ideally for testing connection between tenant agent we need to set this to 'true'. Default is 'false'
293+
// TODO: triage: not sure if we want it to be 'true', as it would mean parallel requests on BW
294+
// Setting it for now
295+
processDidCommMessagesConcurrently: true,
292296
}
293297

294298
async function fetchLedgerData(ledgerConfig: {
@@ -397,6 +401,7 @@ export async function runRestAgent(restConfig: AriesRestConfig) {
397401

398402
await agent.initialize()
399403

404+
// TODO: add some variable like: 'rotateSecret' to trigger rotating the secret from the generic records
400405
const genericRecord = await agent.genericRecords.getAll()
401406
const recordsWithSecretKey = genericRecord.some((record) => record?.content?.secretKey)
402407

0 commit comments

Comments
 (0)