lease: cleanup typo words in lessor.go

Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
Guangming Wang 2019-08-17 00:07:51 +08:00
parent 4a6bf3552e
commit 0a6173c9b6

View File

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