Skip to content

Commit

Permalink
Remove gRPC services and grpcio requirement (#485)
Browse files Browse the repository at this point in the history
* Remove services from .proto files

* Remove grpcio from requirements
  • Loading branch information
mryab authored Jun 18, 2022
1 parent f60e34a commit 712e428
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
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

0 comments on commit 712e428

Please sign in to comment.