Skip to content

Commit

Permalink
wrong place to call function
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinse12 committed Aug 31, 2024
1 parent 9a5bd50 commit 3767a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/node/subplebbit/local-subplebbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export class LocalSubplebbit extends RpcLocalSubplebbit {
await this._updateInstanceStateWithDbState(); // Load InternalSubplebbit from DB here
if (!this.signer) throwWithErrorCode("ERR_LOCAL_SUB_HAS_NO_SIGNER_IN_INTERNAL_STATE", { address: this.address });
await this._updateStartedValue();
await this._setSubplebbitIpfsIfNeeded();

await this._dbHandler.destoryConnection(); // Need to destory connection so process wouldn't hang
}
Expand Down Expand Up @@ -1730,7 +1731,6 @@ export class LocalSubplebbit extends RpcLocalSubplebbit {
await this._updateStartedValue();
await this._dbHandler.initDbIfNeeded();
await this._dbHandler.initDestroyedConnection();
await this._setSubplebbitIpfsIfNeeded();

await this._setChallengesToDefaultIfNotDefined(log);
// Import subplebbit keys onto ipfs node
Expand Down

0 comments on commit 3767a4d

Please sign in to comment.