fix some comments

Signed-off-by: cui fliter <imcusg@gmail.com>
storage-doc
cui fliter 2023-04-20 14:26:17 +08:00
parent b27dec8b94
commit 57908723f4
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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()

View File

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