Skip to content

Commit

Permalink
chore: remove unnecessary archieving of pool
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Waske <krishna.waske@ayanworks.com>
  • Loading branch information
GHkrishna committed Dec 31, 2024
1 parent bf859ef commit 8b5bfa2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/indy-vdr/src/pool/IndyVdrPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export interface IndyVdrPoolConfig {

export class IndyVdrPool {
private _pool?: indyVdrPool
private _archievedPool?: indyVdrPool
private poolConfig: IndyVdrPoolConfig
public authorAgreement?: AuthorAgreement | null

Expand All @@ -59,12 +58,6 @@ export class IndyVdrPool {

public connect() {
if (this._pool) {
throw new IndyVdrError('Cannot connect to pool, already connected.')
}

if (this._archievedPool) {
this._pool = this._archievedPool
this._archievedPool = undefined
return
}

Expand Down Expand Up @@ -103,11 +96,8 @@ export class IndyVdrPool {
throw new IndyVdrError("Can't close pool. Pool is not connected")
}

// FIXME: Currently, the close method is not working coorectly in the indy-vdr-shared package
// FIXME: Currently, the close method is not working correctly in the indy-vdr-shared package
// this.pool.close()
// Hence, a workaround to reset the _pool
this._archievedPool = this._pool
this._pool = undefined
}

public async prepareWriteRequest<Request extends IndyVdrRequest>(
Expand Down

0 comments on commit 8b5bfa2

Please # to comment.