Fix session doc (#8101)

Signed-off-by: godchen <qingxiang.chen@zilliz.com>
pull/8075/head
godchen 2021-09-17 11:21:49 +08:00 committed by GitHub
parent 77ef692390
commit a865dfaba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -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.