Skip to content

Commit 1f1600f

Browse files
committed
fix: lint
1 parent 377efc2 commit 1f1600f

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/discovery/Discovery.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -332,17 +332,10 @@ class Discovery {
332332
/**
333333
* Queues a node for discovery. Internally calls `pushKeyToDiscoveryQueue`.
334334
*/
335-
public async queueDiscoveryByNode(
336-
nodeId: NodeId,
337-
lastProcessedCutoffTime?: number,
338-
ctx?: Partial<ContextTimedInput>,
339-
): Promise<void>;
340335
@ready(new discoveryErrors.ErrorDiscoveryNotRunning())
341-
@timedCancellable(true)
342336
public async queueDiscoveryByNode(
343337
nodeId: NodeId,
344-
lastProcessedCutoffTime: number | undefined,
345-
@context ctx: ContextTimed,
338+
lastProcessedCutoffTime?: number,
346339
): Promise<void> {
347340
await this.scheduleDiscoveryForVertex(
348341
['node', nodeId],
@@ -355,19 +348,11 @@ class Discovery {
355348
* Queues an identity for discovery. Internally calls
356349
* `pushKeyToDiscoveryQueue`.
357350
*/
358-
public async queueDiscoveryByIdentity(
359-
providerId: ProviderId,
360-
identityId: IdentityId,
361-
lastProcessedCutoffTime?: number,
362-
ctx?: Partial<ContextTimedInput>,
363-
): Promise<void>;
364351
@ready(new discoveryErrors.ErrorDiscoveryNotRunning())
365-
@timedCancellable(true)
366352
public async queueDiscoveryByIdentity(
367353
providerId: ProviderId,
368354
identityId: IdentityId,
369-
lastProcessedCutoffTime: number | undefined,
370-
@context ctx: ContextTimed,
355+
lastProcessedCutoffTime?: number,
371356
): Promise<void> {
372357
await this.scheduleDiscoveryForVertex(
373358
['identity', [providerId, identityId]],
@@ -481,7 +466,6 @@ class Discovery {
481466
signedClaim as SignedClaim<ClaimLinkNode>,
482467
nodeId,
483468
lastProcessedCutoffTime,
484-
ctx,
485469
);
486470
break;
487471
case 'ClaimLinkIdentity':
@@ -508,7 +492,6 @@ class Discovery {
508492
signedClaim: SignedClaim<ClaimLinkNode>,
509493
nodeId: NodeId,
510494
lastProcessedCutoffTime = Date.now() - this.rediscoverSkipTime,
511-
ctx: ContextTimed,
512495
): Promise<void> {
513496
// Get the chain data of the linked node
514497
// Could be node1 or node2 in the claim so get the one that's

src/tasks/TaskManager.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { ContextTimed, ContextTimedInput } from '@matrixai/contexts';
21
import type { DB, DBTransaction, LevelPath, KeyPath } from '@matrixai/db';
32
import type { ResourceRelease } from '@matrixai/resources';
43
import type {
@@ -23,7 +22,6 @@ import {
2322
import { Lock } from '@matrixai/async-locks';
2423
import { PromiseCancellable } from '@matrixai/async-cancellable';
2524
import { extractTs } from '@matrixai/id/dist/IdSortable';
26-
import { context, timed } from '@matrixai/contexts/dist/decorators';
2725
import { Timer } from '@matrixai/timer';
2826
import TaskEvent from './TaskEvent';
2927
import * as tasksUtils from './utils';

0 commit comments

Comments
 (0)