Skip to content

Commit 712e428

Browse files
authored
Remove gRPC services and grpcio requirement (#485)
* Remove services from .proto files * Remove grpcio from requirements
1 parent f60e34a commit 712e428

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

hivemind/proto/dht.proto

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ import "auth.proto";
44
// this protocol defines how Hivemind nodes form a distributed hash table.
55
// For more info, see https://learning-at-home.readthedocs.io/en/latest/modules/dht.html or help(hivemind.dht.DHTNode)
66

7-
service DHT {
8-
// find out recipient's DHTID and possibly update its routing table
9-
rpc rpc_ping(PingRequest) returns (PingResponse);
10-
11-
// request a node to store one or multiple data items (key - value - expiration)
12-
rpc rpc_store(StoreRequest) returns (StoreResponse);
13-
14-
// for given keys, request values (if stored) or a list of peers that are likely to have them
15-
rpc rpc_find(FindRequest) returns (FindResponse);
16-
}
17-
187
message NodeInfo {
198
// note: both node_id and port are optional: if specified, ask peer to add you to its routing table;
209
// if either node_id or port is absent, simply request recipient info (for client-only mode)

hivemind/proto/runtime.proto

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
syntax = "proto3";
22

33

4-
service ConnectionHandler {
5-
// Listens to incoming requests for expert computation
6-
rpc info(ExpertUID) returns (ExpertInfo);
7-
rpc forward(ExpertRequest) returns (ExpertResponse);
8-
rpc backward(ExpertRequest) returns (ExpertResponse);
9-
}
10-
11-
124
message ExpertUID {
135
string uid = 1;
146
}

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ prefetch_generator>=1.0.1
66
msgpack>=0.5.6
77
sortedcontainers
88
uvloop>=0.14.0
9-
grpcio>=1.33.2
109
grpcio-tools>=1.33.2
1110
protobuf>=3.12.2
1211
configargparse>=1.2.3

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def proto_compile(output_path):
4141
"grpc_tools.protoc",
4242
"--proto_path=hivemind/proto",
4343
f"--python_out={output_path}",
44-
f"--grpc_python_out={output_path}",
4544
] + glob.glob("hivemind/proto/*.proto")
4645

4746
code = grpc_tools.protoc.main(cli_args)

0 commit comments

Comments
 (0)