Skip to content

Commit a6bfebd

Browse files
authored
doc: Update README.md for getting OpenSergoClient from OpenSergoClientManager (#25)
Signed-off-by: Jiangnan Jia <jnan0806@gmail.com>
1 parent c0b91f0 commit a6bfebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ See the [中文文档](https://opensergo.io/zh-cn/) for document in Chinese.
3131

3232
```java
3333
// 1. Create client with remote host and port of OpenSergo control plane
34-
OpenSergoClient client = new OpenSergoClient(host, port);
34+
OpenSergoClient client = OpenSergoClientManager.get().getOrCreateClient(host, port);
3535
// 2. Start the OpenSergo client.
3636
client.start();
3737

0 commit comments

Comments
 (0)