mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
refactor comments on IsPermanent
This commit is contained in:
parent
5a4e764d7a
commit
acd940a450
@ -84,6 +84,9 @@ func (n *Node) IsHidden() bool {
|
|||||||
|
|
||||||
// IsPermanent function checks if the node is a permanent one.
|
// IsPermanent function checks if the node is a permanent one.
|
||||||
func (n *Node) IsPermanent() bool {
|
func (n *Node) IsPermanent() bool {
|
||||||
|
// we use a uninitialized time.Time to indicate the node is a
|
||||||
|
// permanent one.
|
||||||
|
// the uninitialized time.Time should equal zero.
|
||||||
return n.ExpireTime.IsZero()
|
return n.ExpireTime.IsZero()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user