Skip to content

Commit 74eec9d

Browse files
committed
fix: lint
1 parent 3905fa8 commit 74eec9d

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

src/nodes/NodeConnectionManager.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -689,11 +689,11 @@ class NodeConnectionManager {
689689
* This is the internal acquireConnection for using connections without
690690
* authentication. For usage with withF, to acquire a connection. To wait for
691691
* authentication, use {@link acquireConnection}.
692-
*
692+
*
693693
* This unique acquire function structure of returning the ResourceAcquire
694694
* itself is such that we can pass targetNodeId as a parameter (as opposed to
695695
* an acquire function with no parameters).
696-
*
696+
*
697697
* @param targetNodeId Id of target node to communicate with
698698
* @returns ResourceAcquire Resource API for use in with contexts
699699
*/
@@ -763,13 +763,13 @@ class NodeConnectionManager {
763763
* an acquire function with no parameters). It waits for the connection to be
764764
* authenticated, otherwise throws an error. See {@link acquireConnectionInternal}
765765
* to connect to a node without waiting for authentication.
766-
*
766+
*
767767
* If a connection exists but is not authenticated, the authentication is
768768
* attempted. Authentication is reattempted if it has failed before but
769769
* another attmept is being made to connect to a node.
770-
*
770+
*
771771
* For usage with withF, to acquire a connection.
772-
*
772+
*
773773
* @param targetNodeId Id of target node to communicate with
774774
* @param ctx
775775
* @returns ResourceAcquire Resource API for use in with contexts
@@ -1041,7 +1041,7 @@ class NodeConnectionManager {
10411041
* Multiple connections can be added for a single NodeId, but the connection
10421042
* with the 'lowest' `connectionId` will be used. The remaining
10431043
* connections will be left to timeout gracefully.
1044-
*
1044+
*
10451045
* @param nodeId The target NodeId to connect to
10461046
* @param nodeConnection The object corresponding to the node connection
10471047
*/
@@ -1667,7 +1667,7 @@ class NodeConnectionManager {
16671667
* duplex method. The duplex stream writes messages to a writer and awaits the
16681668
* responses from a reader in real-time. The authentication follows a strict
16691669
* protocol.
1670-
*
1670+
*
16711671
* SEND Authentication message
16721672
* RECV Response message (reverse)
16731673
* RECV Authentication message from Node B

src/nodes/NodeManager.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ import type {
1414
} from '../tasks/types.js';
1515
import type { SignedTokenEncoded } from '../tokens/types.js';
1616
import type { Host, Port } from '../network/types.js';
17-
import type {
18-
Claim,
19-
ClaimId,
20-
// ClaimIdEncoded,
21-
SignedClaim,
22-
} from '../claims/types.js';
17+
import type { Claim, ClaimId, SignedClaim } from '../claims/types.js';
2318
import type { ClaimLinkNode } from '../claims/payloads/index.js';
2419
import type NodeConnection from '../nodes/NodeConnection.js';
2520
import type {
@@ -48,8 +43,8 @@ import { decorators } from '@matrixai/contexts';
4843
import * as nodesUtils from './utils.js';
4944
import * as nodesEvents from './events.js';
5045
import * as nodesErrors from './errors.js';
51-
import * as agentErrors from './agent/errors.js';
5246
import NodeConnectionQueue from './NodeConnectionQueue.js';
47+
import config from '../config.js';
5348
import { assertClaimNetworkAuthority } from '../claims/payloads/claimNetworkAuthority.js';
5449
import { assertClaimNetworkAccess } from '../claims/payloads/claimNetworkAccess.js';
5550
import Token from '../tokens/Token.js';
@@ -58,7 +53,6 @@ import * as tasksErrors from '../tasks/errors.js';
5853
import * as claimsUtils from '../claims/utils.js';
5954
import * as claimsErrors from '../claims/errors.js';
6055
import * as utils from '../utils/utils.js';
61-
import config from '../config.js';
6256
import * as networkUtils from '../network/utils.js';
6357

6458
const abortEphemeralTaskReason = Symbol('abort ephemeral task reason');

src/nodes/errors.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ class ErrorNodeManagerAuthenticationFailed<T> extends ErrorNodeManager<T> {
4848
exitCode = sysexits.NOPERM;
4949
}
5050

51-
class ErrorNodeManagerAuthenticationFailedForward<T> extends ErrorNodeManager<T> {
51+
class ErrorNodeManagerAuthenticationFailedForward<
52+
T,
53+
> extends ErrorNodeManager<T> {
5254
static description = 'Failed to complete forward authentication';
5355
exitCode = sysexits.USAGE;
5456
}
5557

56-
class ErrorNodeManagerAuthenticationFailedReverse<T> extends ErrorNodeManager<T> {
58+
class ErrorNodeManagerAuthenticationFailedReverse<
59+
T,
60+
> extends ErrorNodeManager<T> {
5761
static description = 'Failed to complete reverse authentication';
5862
exitCode = sysexits.USAGE;
5963
}

0 commit comments

Comments
 (0)