diff --git a/hivemind/proto/dht.proto b/hivemind/proto/dht.proto index fc8886054..d54b4d688 100644 --- a/hivemind/proto/dht.proto +++ b/hivemind/proto/dht.proto @@ -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) diff --git a/hivemind/proto/runtime.proto b/hivemind/proto/runtime.proto index eac8eea5f..14704113f 100644 --- a/hivemind/proto/runtime.proto +++ b/hivemind/proto/runtime.proto @@ -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; } diff --git a/requirements.txt b/requirements.txt index 9ce07c9eb..a81dc9a8f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 3e937bbf8..7a739c7c1 100644 --- a/setup.py +++ b/setup.py @@ -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)