Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change node proto and add it to the registry #224

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: v2
modules:
- path: packages/node/src/proto
name: buf.build/topology/node

- path: packages/object/src/proto
name: buf.build/topology/object

Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/rpc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import * as grpc from "@grpc/grpc-js";
import type { ServerUnaryCall, sendUnaryData } from "@grpc/grpc-js";
import { Logger } from "@topology-foundation/logger";
import type { TopologyNode } from "../index.js";
import { TopologyRpcService } from "../proto/rpc_grpc_pb.js";
import { TopologyRpcService } from "../proto/topology/node/rpc_grpc_pb.js";
import type {
GetCroHashGraphRequest,
GetCroHashGraphResponse,
SubscribeCroRequest,
SubscribeCroResponse,
UnsubscribeCroRequest,
UnsubscribeCroResponse,
} from "../proto/rpc_pb.js";
} from "../proto/topology/node/rpc_pb.js";

export function init(node: TopologyNode) {
const log = new Logger(
Expand Down