Skip to content

Commit

Permalink
feat: remove peerConnectionService
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-HocNguyena committed May 8, 2024
1 parent 42a5ed1 commit b85b3a8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 258 deletions.
11 changes: 2 additions & 9 deletions src/core/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
ConnectionService,
CredentialService,
IdentifierService,
PeerConnectionService,
} from "./services";
import { SignifyNotificationService } from "./services/signifyNotificationService";
import { AgentServicesProps } from "./agent.types";
Expand Down Expand Up @@ -69,7 +68,6 @@ class Agent {

private connectionService!: ConnectionService;
private credentialService!: CredentialService;
private peerConnectionService!: PeerConnectionService;
private signifyNotificationService!: SignifyNotificationService;

get identifiers() {
Expand Down Expand Up @@ -128,13 +126,8 @@ class Agent {
return this.credentialService;
}

get peerConnections() {
if (!this.peerConnectionService) {
this.peerConnectionService = new PeerConnectionService(
this.agentServicesProps
);
}
return this.peerConnectionService;
get peerConnectionStorage() {
return this.agentServicesProps.peerConnectionStorage;
}

get basicStorage() {
Expand Down
1 change: 0 additions & 1 deletion src/core/agent/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./identifierService";
export * from "./connectionService";
export * from "./credentialService";
export * from "./peerConnectionService";
198 changes: 0 additions & 198 deletions src/core/agent/services/peerConnectionService.test.ts

This file was deleted.

50 changes: 0 additions & 50 deletions src/core/agent/services/peerConnectionService.ts

This file was deleted.

0 comments on commit b85b3a8

Please sign in to comment.