From 4eb92ea9241a850dbd031064b3722bc4746ab8c9 Mon Sep 17 00:00:00 2001 From: Isla Koenigsknecht Date: Fri, 24 Jan 2025 18:27:08 -0500 Subject: [PATCH] Minor clean up --- packages/backend/src/nest/storage/storage.service.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/backend/src/nest/storage/storage.service.ts b/packages/backend/src/nest/storage/storage.service.ts index 3fbb18bf8..d5ab6a2f8 100644 --- a/packages/backend/src/nest/storage/storage.service.ts +++ b/packages/backend/src/nest/storage/storage.service.ts @@ -7,13 +7,11 @@ import { getReqFieldValue, keyFromCertificate, } from '@quiet/identity' -import { EventsType, type KeyValueType } from '@orbitdb/core' import { EventEmitter } from 'events' import { type PeerId } from '@libp2p/interface' import { CommunityMetadata, ConnectionProcessInfo, - PublicChannel, SaveCSRPayload, SaveCertificatePayload, SocketActionTypes, @@ -27,7 +25,6 @@ import fs from 'fs' import { IPFS_REPO_PATCH, ORBIT_DB_DIR, QUIET_DIR } from '../const' import { LocalDbService } from '../local-db/local-db.service' import { createLogger } from '../common/logger' -import { PublicChannelsRepo } from '../common/types' import { removeFiles, removeDirs, createPaths } from '../common/utils' import { StorageEvents } from './storage.types' import { CertificatesStore } from './certificates/certificates.store' @@ -42,7 +39,6 @@ import { ChannelsService } from './channels/channels.service' @Injectable() export class StorageService extends EventEmitter { private peerId: PeerId | null = null - private certificates: EventsType | null private readonly logger = createLogger(StorageService.name) @@ -347,8 +343,6 @@ export class StorageService extends EventEmitter { await this.channelsService.clean() - this.certificates = null - this.certificatesRequestsStore.clean() this.certificatesStore.clean() this.communityMetadataStore.clean()