Skip to content

Commit 617a7ae

Browse files
committed
small update: removed unused imports in examples/v2
1 parent 2ced86e commit 617a7ae

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

examples/v2/client_v2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from pydantic import BaseModel
22
from simple_rpc.v2.client import GrpcClientV2
33
import asyncio
4-
import pathlib
54

65
client = GrpcClientV2(
76
port=50051

examples/v2/server_v2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from simple_rpc.v2.server import GrpcServerV2
22
from pydantic import BaseModel
3-
import pathlib
43

54
class RequestModel(BaseModel):
65
pass
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// AUTOMATICALLY GENERATED BY SimpleRPC
2+
3+
syntax = "proto3";
4+
import "google/protobuf/empty.proto";
5+
6+
service Server {
7+
rpc example_method(example_methodRequest) returns (example_methodResponce) {}
8+
}
9+
10+
message example_methodResponce {
11+
int64 num2 = 1;
12+
int64 num4 = 2;
13+
}
14+
message example_methodRequest {
15+
}
16+
17+
18+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// AUTOMATICALLY GENERATED BY SimpleRPC
2+
3+
syntax = "proto3";
4+
import "google/protobuf/empty.proto";
5+
6+
service Server {
7+
rpc example_method(example_methodRequest) returns (example_methodResponce) {}
8+
}
9+
10+
message example_methodResponce {
11+
int64 num2 = 1;
12+
int64 num4 = 2;
13+
}
14+
message example_methodRequest {
15+
}
16+
17+
18+
19+
service SOTServer {
20+
rpc get_active_proto(get_active_protoRequest) returns (get_active_protoResponce) {}
21+
}
22+
message get_active_protoResponce {
23+
string proto = 1;
24+
}
25+
message get_active_protoRequest {
26+
}

0 commit comments

Comments
 (0)