mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
lease: cleanup typo words in lessor.go
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
parent
4a6bf3552e
commit
0a6173c9b6
@ -324,7 +324,7 @@ func (le *lessor) Revoke(id LeaseID) error {
|
||||
txn := le.rd()
|
||||
|
||||
// sort keys so deletes are in same order among all members,
|
||||
// otherwise the backened hashes will be different
|
||||
// otherwise the backend hashes will be different
|
||||
keys := l.Keys()
|
||||
sort.StringSlice(keys).Sort()
|
||||
for _, key := range keys {
|
||||
@ -595,7 +595,7 @@ func (le *lessor) runLoop() {
|
||||
}
|
||||
}
|
||||
|
||||
// revokeExpiredLeases finds all leases past their expiry and sends them to epxired channel for
|
||||
// revokeExpiredLeases finds all leases past their expiry and sends them to expired channel for
|
||||
// to be revoked.
|
||||
func (le *lessor) revokeExpiredLeases() {
|
||||
var ls []*Lease
|
||||
|
Loading…
x
Reference in New Issue
Block a user