Skip to content

Commit

Permalink
Rename MetadataQueueService to MetadataService, update imports and re…
Browse files Browse the repository at this point in the history
…ferences, and delete MetadataQueueService file.
  • Loading branch information
miladsoft committed Nov 6, 2024
1 parent 521dc12 commit 0dbf0b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/components/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Chat, Contact, Profile } from 'app/components/chat/chat.types';
import { StorageService } from 'app/services/storage.service';
import { RelayService } from 'app/services/relay.service';
import { SignerService } from 'app/services/signer.service';
import { MetadataQueueService } from 'app/services/metadata-queue.service';
import { MetadataService } from 'app/services/metadata.service';
import { Filter, getEventHash, NostrEvent } from 'nostr-tools';
import { EncryptedDirectMessage } from 'nostr-tools/kinds';

Expand All @@ -29,7 +29,7 @@ export class ChatService implements OnDestroy {
private _signerService: SignerService,
private _storageService: StorageService,
private _relayService: RelayService,
private _metadataQueueService: MetadataQueueService
private _metadataQueueService: MetadataService
) {

this._metadataQueueService.processingStatus$.subscribe((status) => {
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/post-event/post-event.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Subscription, BehaviorSubject, Subject, from } from 'rxjs';
import { concatMap, delay, takeUntil } from 'rxjs/operators';
import { StorageService } from 'app/services/storage.service';
import { SubscriptionService } from 'app/services/subscription.service';
import { MetadataQueueService } from 'app/services/metadata-queue.service';
import { MetadataService } from 'app/services/metadata.service';
import { AngorCardComponent } from '@angor/components/card';
import { TextFieldModule } from '@angular/cdk/text-field';
import { MatButtonModule } from '@angular/material/button';
Expand Down Expand Up @@ -93,7 +93,7 @@ export class PostEventComponent implements OnInit, OnDestroy {
private _router: Router,
private _storageService: StorageService,
private subscriptionService: SubscriptionService,
private metadataQueueService: MetadataQueueService,
private metadataQueueService: MetadataService,
private _changeDetectorRef: ChangeDetectorRef,
public parseContent: ParseContentService
) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface ProcessingStatus {
@Injectable({
providedIn: 'root',
})
export class MetadataQueueService implements OnDestroy {
export class MetadataService implements OnDestroy {
private readonly BATCH_SIZE = 50;
private readonly PROCESS_INTERVAL = 2000; // 2 seconds
private readonly MAX_RETRY_ATTEMPTS = 3;
Expand Down

0 comments on commit 0dbf0b4

Please sign in to comment.