Skip to content

Commit

Permalink
chore: remove logging code (#2594)
Browse files Browse the repository at this point in the history
Remove code left in by accident.
  • Loading branch information
achingbrain committed Jun 18, 2024
1 parent 94cac11 commit a970b53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class ReservationStore extends TypedEventEmitter<ReservationStoreEvents>
}

if (this.relayFilter.has(peerId.toBytes())) {
this.log('potential relay peer %p has failed previously, not trying again', peerId, new Error('where').stack)
this.log('potential relay peer %p has failed previously, not trying again', peerId)
return
}

Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/queue/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Job <JobOptions extends AbortOptions = AbortOptions, JobReturnType
}

async join (options: AbortOptions = {}): Promise<JobReturnType> {
const recipient = new JobRecipient<JobReturnType>((new Error('where')).stack, options.signal)
const recipient = new JobRecipient<JobReturnType>(options.signal)
this.recipients.push(recipient)

options.signal?.addEventListener('abort', this.onAbort)
Expand Down
4 changes: 1 addition & 3 deletions packages/utils/src/queue/recipient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ import type { DeferredPromise } from 'p-defer'
export class JobRecipient<JobReturnType> {
public deferred: DeferredPromise<JobReturnType>
public signal?: AbortSignal
public where?: string

constructor (where?: string, signal?: AbortSignal) {
constructor (signal?: AbortSignal) {
this.signal = signal
this.deferred = pDefer()
this.where = where

this.onAbort = this.onAbort.bind(this)
this.signal?.addEventListener('abort', this.onAbort)
Expand Down

0 comments on commit a970b53

Please sign in to comment.