From 0b2d8a6c9666a64a885c6d4cad2f8b6b3191d880 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 8 Sep 2017 18:26:50 -0700 Subject: [PATCH] *: fix minor typos Signed-off-by: Gyu-Ho Lee --- clientv3/integration/leasing_test.go | 2 +- etcdserver/apply.go | 2 +- rafthttp/transport.go | 2 +- store/metrics.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clientv3/integration/leasing_test.go b/clientv3/integration/leasing_test.go index 1bfdf9c2b10..d1758028d86 100644 --- a/clientv3/integration/leasing_test.go +++ b/clientv3/integration/leasing_test.go @@ -771,7 +771,7 @@ func TestLeasingTxnOwnerIf(t *testing.T) { t.Fatal(terr) } if tresp.Succeeded != tt.wSucceeded { - t.Errorf("#%d: expected succeded %v, got %v", i, tt.wSucceeded, tresp.Succeeded) + t.Errorf("#%d: expected succeeded %v, got %v", i, tt.wSucceeded, tresp.Succeeded) } if len(tresp.Responses) != tt.wResponses { t.Errorf("#%d: expected %d responses, got %d", i, tt.wResponses, len(tresp.Responses)) diff --git a/etcdserver/apply.go b/etcdserver/apply.go index 295d93714ec..23f21b3aeea 100644 --- a/etcdserver/apply.go +++ b/etcdserver/apply.go @@ -424,7 +424,7 @@ func applyCompares(rv mvcc.ReadView, cmps []*pb.Compare) bool { // applyCompare applies the compare request. // If the comparison succeeds, it returns true. Otherwise, returns false. func applyCompare(rv mvcc.ReadView, c *pb.Compare) bool { - // TOOD: possible optimizations + // TODO: possible optimizations // * chunk reads for large ranges to conserve memory // * rewrite rules for common patterns: // ex. "[a, b) createrev > 0" => "limit 1 /\ kvs > 0" diff --git a/rafthttp/transport.go b/rafthttp/transport.go index 78f92dd2172..51574ba5eda 100644 --- a/rafthttp/transport.go +++ b/rafthttp/transport.go @@ -142,7 +142,7 @@ func (t *Transport) Start() error { t.peers = make(map[types.ID]Peer) t.prober = probing.NewProber(t.pipelineRt) - // If client didn't provide dial retry frequence, use the default + // If client didn't provide dial retry frequency, use the default // (100ms backoff between attempts to create a new stream), // so it doesn't bring too much overhead when retry. if t.DialRetryFrequency == 0 { diff --git a/store/metrics.go b/store/metrics.go index 08cd4f030ce..077c0fa23ea 100644 --- a/store/metrics.go +++ b/store/metrics.go @@ -87,7 +87,7 @@ const ( func init() { if prometheus.Register(readCounter) != nil { - // Tests will try to double register sicne the tests use both + // Tests will try to double register since the tests use both // store and store_test packages; ignore second attempts. return }