mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: minor typos, kill TODOs
This commit is contained in:
parent
cd323e0ec8
commit
835d824965
@ -360,8 +360,6 @@ func TestV3WatchFromCurrentRevision(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// TODO: watch and receive multiple-events from synced (need Txn)
|
||||
}
|
||||
|
||||
for i, tt := range tests {
|
||||
|
@ -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()
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user