mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11047 from ethan-daocloud/patch-4
lease: cleanup typo words in lessor.go
This commit is contained in:
commit
c89777dd70
@ -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