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

Remove gRPC services and grpcio requirement #485

Merged
merged 9 commits into from
Jun 18, 2022
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
11 changes: 0 additions & 11 deletions hivemind/proto/dht.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ import "auth.proto";
// this protocol defines how Hivemind nodes form a distributed hash table.
// For more info, see https://learning-at-home.readthedocs.io/en/latest/modules/dht.html or help(hivemind.dht.DHTNode)

service DHT {
// find out recipient's DHTID and possibly update its routing table
rpc rpc_ping(PingRequest) returns (PingResponse);

// request a node to store one or multiple data items (key - value - expiration)
rpc rpc_store(StoreRequest) returns (StoreResponse);

// for given keys, request values (if stored) or a list of peers that are likely to have them
rpc rpc_find(FindRequest) returns (FindResponse);
}

message NodeInfo {
// note: both node_id and port are optional: if specified, ask peer to add you to its routing table;
// if either node_id or port is absent, simply request recipient info (for client-only mode)
Expand Down
8 changes: 0 additions & 8 deletions hivemind/proto/runtime.proto
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
syntax = "proto3";


service ConnectionHandler {
// Listens to incoming requests for expert computation
rpc info(ExpertUID) returns (ExpertInfo);
rpc forward(ExpertRequest) returns (ExpertResponse);
rpc backward(ExpertRequest) returns (ExpertResponse);
}


message ExpertUID {
string uid = 1;
}
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ prefetch_generator>=1.0.1
msgpack>=0.5.6
sortedcontainers
uvloop>=0.14.0
grpcio>=1.33.2
grpcio-tools>=1.33.2
protobuf>=3.12.2
configargparse>=1.2.3
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def proto_compile(output_path):
"grpc_tools.protoc",
"--proto_path=hivemind/proto",
f"--python_out={output_path}",
f"--grpc_python_out={output_path}",
] + glob.glob("hivemind/proto/*.proto")

code = grpc_tools.protoc.main(cli_args)
Expand Down