mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix some comments
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
b27dec8b94
commit
57908723f4
@ -111,7 +111,7 @@ func (l *tlsKeepaliveListener) Accept() (c net.Conn, err error) {
|
||||
return c, nil
|
||||
}
|
||||
|
||||
// NewListener creates a Listener which accepts connections from an inner
|
||||
// newTLSKeepaliveListener creates a Listener which accepts connections from an inner
|
||||
// Listener and wraps each connection with Server.
|
||||
// The configuration config must be non-nil and must have
|
||||
// at least one certificate.
|
||||
|
@ -63,7 +63,7 @@ func (rwm *RWMutex) Lock() error {
|
||||
}
|
||||
}
|
||||
|
||||
// waitOnLowest will wait on the last key with a revision < rwm.myKey.Revision with a
|
||||
// waitOnLastRev will wait on the last key with a revision < rwm.myKey.Revision with a
|
||||
// given prefix. If there are no keys left to wait on, return true.
|
||||
func (rwm *RWMutex) waitOnLastRev(pfx string) (bool, error) {
|
||||
client := rwm.s.Client()
|
||||
|
@ -56,7 +56,7 @@ func (l *Lease) TTL() int64 {
|
||||
return l.ttl
|
||||
}
|
||||
|
||||
// RemainingTTL returns the last checkpointed remaining TTL of the lease.
|
||||
// getRemainingTTL returns the last checkpointed remaining TTL of the lease.
|
||||
func (l *Lease) getRemainingTTL() int64 {
|
||||
if l.remainingTTL > 0 {
|
||||
return l.remainingTTL
|
||||
|
Loading…
x
Reference in New Issue
Block a user