未验证 提交 a865dfab 编写于 作者: G godchen 提交者: GitHub

Fix session doc (#8101)

Signed-off-by: Ngodchen <qingxiang.chen@zilliz.com>
上级 77ef6923
......@@ -96,7 +96,7 @@ const (
DefaultServiceRoot = "session/"
DefaultIDKey = "id"
DefaultRetryTimes = 30
DefaultTTL = 10
DefaultTTL = 60
)
// Session is a struct to store service's session, including ServerID, ServerName,
......@@ -108,11 +108,6 @@ type Session struct {
ServerName string `json:"ServerName,omitempty"`
Address string `json:"Address,omitempty"`
Exclusive bool `json:"Exclusive,omitempty"`
etcdCli *clientv3.Client
leaseID clientv3.LeaseID
cancel context.CancelFunc
metaRoot string
}
// NewSession is a helper to build Session object.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册