Skip to content

Commit 4f545d2

Browse files
committed
fix: fixed mentions of GRPC
[ci skip]
1 parent d36a9ac commit 4f545d2

13 files changed

Lines changed: 14 additions & 20 deletions

File tree

src/PolykeyAgent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,6 @@ class PolykeyAgent {
856856
// Adding self to the gestaltGraph
857857
await this.gestaltGraph.setNode({ nodeId: this.keyRing.getNodeId() });
858858
await this.identitiesManager.start({ fresh });
859-
// GRPC Server
860859
const tlsConfig: TLSConfig = {
861860
keyPrivatePem: keysUtils.privateKeyToPEM(
862861
this.keyRing.keyPair.privateKey,

src/claims/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ErrorClaimsUndefinedClaimPayload<T> extends ErrorClaims<T> {
88
}
99

1010
/**
11-
* Exceptions arising in cross-signing process (GRPC)
11+
* Exceptions arising in cross-signing process
1212
*/
1313
class ErrorCrossSign<T> extends ErrorClaims<T> {}
1414

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const config = {
4444
*/
4545
stateVersion: 1,
4646
/**
47-
* Version of the gRPC and HTTP service
47+
* Version of the RPC and HTTP service
4848
* It is only incremented on breaking changes
4949
* Use this to know if you must upgrade your service client
5050
*/

src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export {
5858
* Recursively export all domain-level error classes
5959
* This ensures that we have one place to construct and
6060
* reference all Polykey errors.
61-
* This is used by gRPC to serialize errors from agent to client.
61+
* This is used by RPC to serialize errors from agent to client.
6262
*/
6363
export * from './acl/errors';
6464
export * from './sessions/errors';

src/nodes/NodeConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class NodeConnection<M extends ClientManifest> extends EventTarget {
234234
}
235235

236236
/**
237-
* Gets GRPCClient for this node connection
237+
* Gets RPCClient for this node connection
238238
*/
239239
public getClient(): RPCClient<M> {
240240
return this.rpcClient;

src/nodes/NodeConnectionManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ class NodeConnectionManager {
935935
}
936936

937937
/**
938-
* Performs a GRPC request to retrieve the closest nodes relative to the given
938+
* Performs a RPC request to retrieve the closest nodes relative to the given
939939
* target node ID.
940940
* @param nodeId the node ID to search on
941941
* @param targetNodeId the node ID to find other nodes closest to it
@@ -1001,7 +1001,7 @@ class NodeConnectionManager {
10011001
}
10021002

10031003
/**
1004-
* Performs a GRPC request to send a hole-punch message to the target. Used to
1004+
* Performs a RPC request to send a hole-punch message to the target. Used to
10051005
* initially establish the NodeConnection from source to target.
10061006
*
10071007
* @param relayNodeId node ID of the relay node (i.e. the seed node)

src/nodes/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function generateRandomNodeIdForBucket(
286286
* Connection failures can happen due to the following.
287287
* Failure to establish a connection,
288288
* an existing connection fails,
289-
* the GRPC client has been destroyed,
289+
* the RPC client has been destroyed,
290290
* or the NodeConnection has been destroyed.
291291
* This is generally used to check the connection has failed
292292
* before cleaning it up.

src/rpc/utils/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function parseJSONRPCMessage<T extends JSONValue>(
201201
}
202202

203203
/**
204-
* Replacer function for serialising errors over GRPC (used by `JSON.stringify`
204+
* Replacer function for serialising errors over RPC (used by `JSON.stringify`
205205
* in `fromError`)
206206
* Polykey errors are handled by their inbuilt `toJSON` method , so this only
207207
* serialises other errors
@@ -263,7 +263,7 @@ function fromError(error: Error, sensitive: boolean = false) {
263263

264264
/**
265265
* Error constructors for non-Polykey errors
266-
* Allows these errors to be reconstructed from GRPC metadata
266+
* Allows these errors to be reconstructed from RPC metadata
267267
*/
268268
const standardErrors = {
269269
Error,
@@ -278,7 +278,7 @@ const standardErrors = {
278278
};
279279

280280
/**
281-
* Reviver function for deserialising errors sent over GRPC (used by
281+
* Reviver function for deserialising errors sent over RPC (used by
282282
* `JSON.parse` in `toError`)
283283
* The final result returned will always be an error - if the deserialised
284284
* data is of an unknown type then this will be wrapped as an

src/validation/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ErrorValidation extends ErrorPolykey<void> {
2626

2727
/**
2828
* This packages an `ErrorParse` array into the `data` property
29-
* This is to allow encoding to and decoding from GRPC errors
29+
* This is to allow encoding to and decoding from RPC errors
3030
*/
3131
static createFromErrors(errors: Array<ErrorParse>): ErrorValidation {
3232
const message = errors.map((e) => e.message).join('; ');

src/vaults/VaultInternal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class VaultInternal {
145145
efs,
146146
logger,
147147
});
148-
// This error flag will contain the error returned by the cloning grpc stream
148+
// This error flag will contain the error returned by the cloning rpc stream
149149
let error;
150150
// Make the directory where the .git files will be auto generated and
151151
// where the contents will be cloned to ('contents' file)
@@ -549,7 +549,7 @@ class VaultInternal {
549549
);
550550
}
551551

552-
// This error flag will contain the error returned by the cloning grpc stream
552+
// This error flag will contain the error returned by the cloning rpc stream
553553
let error;
554554
// Keeps track of whether the metadata needs changing to avoid unnecessary db ops
555555
// 0 = no change, 1 = change with vault Id, 2 = change with vault name

0 commit comments

Comments
 (0)