浏览代码

Merge pull request #9034 from hexfusion/fx_ttl_doc

clientv3/lease.go: TTL, document expired Lease.
Gyuho Lee 8 年之前
父节点
当前提交
9c326ab78c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      clientv3/lease.go

+ 1 - 1
clientv3/lease.go

@@ -50,7 +50,7 @@ type LeaseTimeToLiveResponse struct {
 	*pb.ResponseHeader
 	*pb.ResponseHeader
 	ID LeaseID `json:"id"`
 	ID LeaseID `json:"id"`
 
 
-	// TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
+	// TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds. Expired lease will return -1.
 	TTL int64 `json:"ttl"`
 	TTL int64 `json:"ttl"`
 
 
 	// GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
 	// GrantedTTL is the initial granted time in seconds upon lease creation/renewal.