Browse Source

lease: cleanup typo words in lessor.go

Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
Guangming Wang 6 years ago
parent
commit
0a6173c9b6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lease/lessor.go

+ 2 - 2
lease/lessor.go

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