*: minor typos, kill TODOs

This commit is contained in:
Gyu-Ho Lee 2016-01-20 16:21:39 -08:00
parent cd323e0ec8
commit 835d824965
3 changed files with 2 additions and 4 deletions

View File

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

View File

@ -349,7 +349,7 @@ func (le *lessor) findExpiredLeases() []*Lease {
} }
// get gets the lease with given id. // 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 { func (le *lessor) get(id LeaseID) *Lease {
le.mu.Lock() le.mu.Lock()
defer le.mu.Unlock() defer le.mu.Unlock()

View File

@ -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. // walk walks through the revisions in the generation in descending order.
// It passes the revision to the given function. // 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 // walk returns the position at where it stopped. If it stopped after
// finishing walking, -1 will be returned. // finishing walking, -1 will be returned.
func (g *generation) walk(f func(rev revision) bool) int { func (g *generation) walk(f func(rev revision) bool) int {