Преглед изворни кода

Remove gRPC services and grpcio requirement (#485)

* Remove services from .proto files

* Remove grpcio from requirements
Max Ryabinin пре 3 година
родитељ
комит
712e4286cf
4 измењених фајлова са 0 додато и 21 уклоњено
  1. 0 11
      hivemind/proto/dht.proto
  2. 0 8
      hivemind/proto/runtime.proto
  3. 0 1
      requirements.txt
  4. 0 1
      setup.py

+ 0 - 11
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)

+ 0 - 8
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;
 }

+ 0 - 1
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

+ 0 - 1
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)