diff --git a/keyserver/src/grpc/grpc-client.js b/keyserver/src/grpc/grpc-client.js deleted file mode 100644 --- a/keyserver/src/grpc/grpc-client.js +++ /dev/null @@ -1,22 +0,0 @@ -// @flow - -import * as grpc from '@grpc/grpc-js'; -import * as protoLoader from '@grpc/proto-loader'; - -import type { IdentityServiceClient } from 'lib/types/grpc-types'; - -const PROTO_PATH = '../shared/protos/identity.proto'; -const packageDefinition = protoLoader.loadSync(PROTO_PATH, { - keepCase: true, - longs: String, - enums: String, - defaults: true, - oneofs: true, -}); -const identity = grpc.loadPackageDefinition(packageDefinition).identity; -const identityClient: IdentityServiceClient = new identity.IdentityService( - 'localhost:50051', - grpc.credentials.createInsecure(), -); - -export { identityClient };