Sfoglia il codice sorgente

Merge pull request #8536 from gyuho/typo

*: fix minor typos
Gyu-Ho Lee 8 anni fa
parent
commit
bc50a4591a

+ 1 - 1
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))

+ 1 - 1
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"

+ 1 - 1
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 {

+ 1 - 1
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
 	}