Merge pull request #15745 from catandcoder/main

fix some comments
This commit is contained in:
Benjamin Wang 2023-04-20 15:07:07 +08:00 committed by GitHub
commit 0ac617059f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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