修改readme中的调用说明
TODO的完善
diff --git a/README.md b/README.md
index 89598ca..de2657f 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
Python Dubbo Client
=====================================
-实现客户端的负载均衡、自动发现服务功能
+实现客户端的负载均衡、配合Zookeeper自动发现服务功能
-------------------------------------
@@ -23,8 +23,10 @@
### Example
```python
+ config = ApplicationConfig('test_rpclib')
service_interface = 'com.ofpay.demo.api.UserProvider'
- registry = ZookeeperRegistry('172.19.65.33:2181')
+ #registry包含了和zookeeper的连接,该对象需要缓存
+ registry = ZookeeperRegistry('192.168.59.103:2181', config)
user_provider = DubboClient(service_interface, registry, version='1.0')
for i in range(1000):
try:
@@ -41,9 +43,9 @@
```
### TODO
-优化性能
-支持Retry参数
-支持RoundRobin的调用
+优化性能,将服务上下线的影响降到最小
+支持Retry参数
+支持权重调用
### Licenses
MIT License
\ No newline at end of file