Skip to content

Commit

Permalink
Revert "fix: agent init props"
Browse files Browse the repository at this point in the history
This reverts commit f0e2878.
  • Loading branch information
bao-sotatek committed May 7, 2024
1 parent f0e2878 commit dc88585
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class Agent {
"https://dev.keria-boot.cf-keripy.metadata.dev.cf-deployments.org";

private static instance: Agent;
private agentServicesProps!: AgentServicesProps;

private storageSession!: SqliteSession | IonicSession;

private basicStorageService!: BasicStorage;
Expand All @@ -66,11 +68,6 @@ class Agent {
private credentialService!: CredentialService;
private signifyNotificationService!: SignifyNotificationService;

private agentServicesProps: AgentServicesProps = {
signifyClient: this.signifyClient,
eventService: new EventService(),
};

get identifiers() {
if (!this.identifierService) {
this.identifierService = new IdentifierService(
Expand Down Expand Up @@ -190,6 +187,10 @@ class Agent {
this.notificationStorage = new NotificationStorage(
this.getStorageService<NotificationRecord>(this.storageSession)
);
this.agentServicesProps = {
signifyClient: this.signifyClient,
eventService: new EventService(),
};
Agent.ready = true;
}
}
Expand Down

0 comments on commit dc88585

Please sign in to comment.