Browse Source

*: minor typos, kill TODOs

Gyu-Ho Lee 10 years ago
parent
commit
835d824965
3 changed files with 2 additions and 4 deletions
  1. 0 2
      integration/v3_grpc_test.go
  2. 1 1
      lease/lessor.go
  3. 1 1
      storage/key_index.go

+ 0 - 2
integration/v3_grpc_test.go

@@ -360,8 +360,6 @@ func TestV3WatchFromCurrentRevision(t *testing.T) {
 				},
 			},
 		},
-
-		// TODO: watch and receive multiple-events from synced (need Txn)
 	}
 
 	for i, tt := range tests {

+ 1 - 1
lease/lessor.go

@@ -349,7 +349,7 @@ func (le *lessor) findExpiredLeases() []*Lease {
 }
 
 // get gets the lease with given id.
-// get is a helper fucntion for testing, at least for now.
+// get is a helper function for testing, at least for now.
 func (le *lessor) get(id LeaseID) *Lease {
 	le.mu.Lock()
 	defer le.mu.Unlock()

+ 1 - 1
storage/key_index.go

@@ -305,7 +305,7 @@ func (g *generation) isEmpty() bool { return g == nil || len(g.revs) == 0 }
 
 // walk walks through the revisions in the generation in descending order.
 // It passes the revision to the given function.
-// walk returns until: 1. it finishs walking all pairs 2. the function returns false.
+// walk returns until: 1. it finishes walking all pairs 2. the function returns false.
 // walk returns the position at where it stopped. If it stopped after
 // finishing walking, -1 will be returned.
 func (g *generation) walk(f func(rev revision) bool) int {