Skip to content

Commit

Permalink
Merge pull request #8536 from gyuho/typo
Browse files Browse the repository at this point in the history
*: fix minor typos
  • Loading branch information
gyuho committed Sep 11, 2017
2 parents 80aa810 + 0b2d8a6 commit bc50a45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clientv3/integration/leasing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion rafthttp/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion store/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bc50a45

Please sign in to comment.