Skip to content

Commit fdb0e70

Browse files
authored
Update README.md
1 parent 7557a08 commit fdb0e70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ app.run()
4949
client.py
5050
```python
5151
from pydantic import BaseModel
52-
from simple_rpc.v2.client import GrpcClientV2
52+
from simple_rpc import GrpcClient
5353
import asyncio
5454

55-
client = GrpcClientV2(
55+
client = GrpcClient(
56+
proto_file_relpath="simplerpc_tmp/Server.proto", # Generates automatically on server startup
5657
port=50051
5758
)
5859
command = client.configure_command(
5960
functionName="example_method",
6061
className="Server"
6162
)
6263

63-
6464
async def run():
6565
print(
6666
await command()

0 commit comments

Comments
 (0)