From 835d824965a71576f515496123e27080e76d1a7c Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 20 Jan 2016 16:21:39 -0800 Subject: [PATCH] *: minor typos, kill TODOs --- integration/v3_grpc_test.go | 2 -- lease/lessor.go | 2 +- storage/key_index.go | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/integration/v3_grpc_test.go b/integration/v3_grpc_test.go index 8d07d9348..dc00f6afa 100644 --- a/integration/v3_grpc_test.go +++ b/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 { diff --git a/lease/lessor.go b/lease/lessor.go index 88151f6f7..c71410f64 100644 --- a/lease/lessor.go +++ b/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() diff --git a/storage/key_index.go b/storage/key_index.go index 5c78bef1b..ff12f5202 100644 --- a/storage/key_index.go +++ b/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 {